SYBASE_RESULT(3)SYBASE_RESULT(3)sybase_result - Get result dataSYNOPSIS
string sybase_result (resource $result, int $row, mixed $field)
DESCRIPTION
Returns the contents of the cell at the row and offset in the specified Sybase result set.
When working on large result sets, you should consider using one of the functions that fetch an entire row (specified below). As these
functions return the contents of multiple cells in one function call, they're MUCH quicker than sybase_result(). Also, note that specifying
a numeric offset for the field argument is much quicker than specifying a fieldname or tablename.fieldname argument.
Recommended high-performance alternatives: sybase_fetch_row(3), sybase_fetch_array(3) and sybase_fetch_object(3).
PARAMETERS
o $result
-
o $row
-
o $field
- The field argument can be the field's offset, or the field's name, or the field's table dot field's name (tablename.fieldname).
If the column name has been aliased ('select foo as bar from...'), use the alias instead of the column name.
RETURN VALUES sybase_result(3) returns the contents of one cell from a Sybase result set.
PHP Documentation Group SYBASE_RESULT(3)
Check Out this Related Man Page
MSQL_RESULT(3)MSQL_RESULT(3)msql_result - Get result dataSYNOPSIS
string msql_result (resource $result, int $row, [mixed $field])
DESCRIPTION msql_result(3) returns the contents of one cell from a mSQL result set.
When working on large result sets, you should consider using one of the functions that fetch an entire row (specified below). As these
functions return the contents of multiple cells in one function call, they are often much quicker than msql_result(3).
Recommended high-performance alternatives: msql_fetch_row(3), msql_fetch_array(3), and msql_fetch_object(3).
PARAMETERS
o $
result -The result resource that is being evaluated. This result comes from a call to msql_query(3).
o $row
- The row offset.
o $field
- Can be the field's offset, or the field's name, or the field's table dot field's name (tablename.fieldname.). If the column name
has been aliased ('select foo as bar from ...'), use the alias instead of the column name.
Note
Specifying a numeric field offset is much quicker than specifying a fieldname or tablename.fieldname.
RETURN VALUES
Returns the contents of the cell at the row and offset in the specified mSQL result set.
PHP Documentation Group MSQL_RESULT(3)
Hallo All, this is my code below. The problem happens under section A because field $9 sometimes does not contain a number it contains a (:) and a number is contained in field $10 as result under sectionC we get a syntax error @
echo "scale=1; $aa+$ee+$ff"|bc > /tmp/pax/c3.txt
So i need to... (5 Replies)
Hi all, I need some help on switching field/column values. For example I have a file name data.txt which contains:
a b
a b
a b
and I want to switch a and b and save it to the same file.
the file data.txt then will have:
b a
b a
b a
The problem is, well, I know how to... (7 Replies)
Hi,
I want to pick contents of a column in a file and copy the contents of this to other column.
awk can be used for this, but the number of fields are higher so awk will not help. Any other way to do this.
e.g following file has some contents a follows
a,b,c,d,e,f,9,0
i need... (4 Replies)
pls explain me how this works....
DECODE (SUBSTR (field, 1, 1),'''', '''''' || field || '''','''' || field || '''')
here field is a column in an oracle table.... (7 Replies)
I have a text file like:
"10","server","","11111",JLB,
I need a way to say if the 3rd field has data in it, move the contents of the entire line to a new file.
Any ideas?
Thanks, (5 Replies)
I have . dat file which contains data in a specific format:
0 3 892 921 342
1 3 921 342 543
2 4 817 562 718 765
3 3 819 562 717 761
i need to compare each field in a row with another field of the same column but different row and cont the... (8 Replies)
How do you delete cells from a space delimited text file given row and column number? Letś say the row number is r and the column number is c. Thanks! (5 Replies)
Dear all,
I have been trying to print an entire field, if the first line of the field is matching.
For example, my input looks something like this.
aaa ddd zzz
123 987 126
24 0.650 985
354 9864 0.32
0.333 4324 000
I am looking for a pattern,... (5 Replies)
I saw some recent posts where I thought the terms "field" and "column" were being misused. I work with data a lot, and have my opinions. I'm wondering if those opinions are correct.
***** Rows seem clear - I don't think there is any controversy about what a row is, either for database or text... (10 Replies)
Hello,
I am new to Linux environment , I working on Linux script which should send auto email based on the specific condition from log file. Below is the sample log file
Name m/c usage
abc xxx 10
abc xxx 20
abc xxx 5
xyz ... (6 Replies)
Please help! I figured I would take this one to the experts. I'm working with a field that contains contents such as:
LastName FirstName
For example:
Smith John
I'm trying to take this field and split it so that it is two separate fields (first name and last name). I then need to print... (5 Replies)
Gents,
Please can you help me with this.
When column 49 == 2
Need to do the following changes;
Change previous row field (substr$0,45,4)-1
Change previous row field (substr$0,72,5)+2
Change actual row field (substr$0,40,4)+1
Change actual row field (substr$0,49,1)-1
Change actual... (6 Replies)
Hi All,
Does anyone have any suggestions/examples of how i could show only lines where the first field is not duplicated. If the first field is listed more than once it shouldnt be shown even if the other columns make it unique.
Example file :
876,RIBDA,EC2
876,RIBDH,EX7
877,RIBDF,E28... (4 Replies)