Sponsored Content
Full Discussion: help
Top Forums Shell Programming and Scripting help Post 302129580 by matrixmadhan on Tuesday 31st of July 2007 03:13:26 PM
Old 07-31-2007
Quote:
He has a file with 9 (nine) columns and wants to replace the 4th column.

Your test data has 17 columns, much more than 9 columns.

Also the 'A' in your test data is on the 7th column, not the 4th column.
Confusion here !

I assumed data value separated by spaces

data1 space data2 space .... data<n>

something like that.

If the file format is different just by tuning the solution to the needs it should work Smilie
 
DB2_FIELD_NAME(3)							 1							 DB2_FIELD_NAME(3)

db2_field_name - Returns the name of the column in the result set

SYNOPSIS
string db2_field_name (resource $stmt, mixed $column) DESCRIPTION
Returns the name of the specified column in the result set. PARAMETERS
o $stmt - Specifies a statement resource containing a result set. o $column - Specifies the column in the result set. This can either be an integer representing the 0-indexed position of the column, or a string containing the name of the column. RETURN VALUES
Returns a string containing the name of the specified column. If the specified column does not exist in the result set, db2_field_name(3) returns FALSE. SEE ALSO
db2_field_display_size(3), db2_field_num(3), db2_field_precision(3), db2_field_scale(3), db2_field_type(3), db2_field_width(3). PHP Documentation Group DB2_FIELD_NAME(3)
All times are GMT -4. The time now is 06:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy