I mean first
1st row data in cursor postion 1
2nd row data in cursor postion 10
3rd row data in cursor postion 17
4th row data in cursor postion 22
5th row data in cursor postion 32
6th row data in cursor postion 42 etc
That will be great if someone can advice how to fix it.
Hi,
I want to write a shell script which increments a particular column in a row from a text file and then adds another row below the current row with the incremented value .
For Eg .
if the input file has a row :
abc xyz lmn 89 lm nk o p
I would like the script to create something like... (9 Replies)
Dear friends,
Below is my program and current output. I wish to have 3 or 4 column output in order to accomodate in single page. i do have subsequent command to process after user enter the number.
Program
COUNT=1
for MYDIR in `ls /`
do
VOBS=${MYDIR}
echo "${COUNT}. ${MYDIR}"
... (4 Replies)
Hello,
I have an input file like the following:
11_3_4
2_1_35
3_15__
_16989
Where '_' is a space. The data is in a table. Is there a way for the program to prompt the user for x1,y1 and x2,y2, where x1,y1 is the desired number (for example x=6 y=4 is a value of 4) and move to a desired spot... (2 Replies)
Hi Friends,
I have a single column data like below.
1
2
3
4
5
I need the output like below.
0
1
2
3
4
where each row (including first row) subtracting from first row and the result should print below like the way shown in output file.
Thanks
Sid (11 Replies)
Hi Guys,
Input.txt
L194 A -118.2
L194 B -115.1
L194 C -118.7
L196 A 0
L196 C 0
L197 A -111.2
L197 B -118.9
L197 C -119.9
L199 A -120.4
L199 B -119.9 ... (2 Replies)
I have a table with this structure:
cola colb colc
1 19 lemon
20 31 lemon
32 100 lemon
159 205 cherries
210 500 cherries
and need to parse it into this format:
cola colb colc
1 100 lemon
159 500 cherries
So I need the first row of cola and the last row of colb if colc has the... (3 Replies)
First I'd like to apologize if I opened a thread which is already open somewhere.
I did a bit of searching but could quite find what I was looking for, so I will try to explaing what I need.
I'm writing a script on our server, got to a point where I have two files with results. Example:
File1... (6 Replies)
Discussion started by: mitabrev83
6 Replies
LEARN ABOUT PHP
ingres_result_seek
INGRES_RESULT_SEEK(3) 1 INGRES_RESULT_SEEK(3)ingres_result_seek - Set the row position before fetching dataSYNOPSIS
bool ingres_result_seek (resource $result, int $position)
DESCRIPTION
This function is used to position the cursor associated with the result resource before issuing a fetch. If ingres.array_index_start is
set to 0 then the first row is 0 else it is 1. ingres_result_seek(3) can be used only with queries that make use of scrollable cursors. It
cannot be used with ingres_unbuffered_query(3).
Note
Related Configurations
See also the ingres.scrollable and ingres.array_index_start directives in Runtime Configuration.
PARAMETERS
o $result
- The result identifier for a query
o $position
- The row to position the cursor on. If ingres.array_index_start is set to 0, then the first row is 0, else it is 1
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
Position the cursor on the 3rd row
<?php
$result=ingres_query($link, "select * from airport where ap_ccode = 'ES' order by ap_place asc");
/* goto row 3 */
if (!ingres_result_seek($result, 3))
{
echo ingres_errno() . " - " . ingres_error . "
";
die("i died");
}
else
{
$airport = ingres_fetch_object ($result);
{
echo $airport->ap_iatacode . " - " . $airport->ap_name . "
";
}
}
ingres_commit($link);
?>
SEE ALSO ingres_query(3), ingres_fetch_array(3), ingres_fetch_assoc(3), ingres_fetch_object(3), ingres_fetch_row(3).
PHP Documentation Group INGRES_RESULT_SEEK(3)