Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

I have 1 rd in my flat file.
say reord from 1 to 10 position : 'AS400NDB2400'
I need to change the value from N to Y
using SQL stmt ...How can I update this....?

Answer Posted / brave

Update <Table> set <field> = Substr(<field>,1,5)
||'Y'||Substr(<field>,7,6) where <Condition>

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to develop some simple graphs (bar charts) using just html?

1065


what are various techniques to pass parameters from one program to another?

1862


what is the purpose of data structure?

1746


list some of the commonly used commands for debugging?

1631


can a single screen format occupy a screen area above and below a subfile format ?

1679


define the purpose of the %sst function?

1656


what are the three line types in rlu ?

2190


Difference Between Interactive & Batch Job?

1242


what do we can do with the embedded sql statements?

1055


how many levels are there in a physical file?

1794


can you specify a display file to be used in the following modes input,output, or combined modes ?

1561


what are members?

1057


what does dfu program you to do on a record?

1224


what is the function of cpysplf command?

1689


how can you check for a records existence without causing and i/o (chain/read)?

2094