Jump to content

Sql Experts


Yuvatha

Recommended Posts

Database lo column values update cheyyali.

 

suppose table 'xyz'  coumn 'abc' value 1000 unte i need to set that value to 2000.

 

Ila chala tables lo cheyyali..

 

any script to do this for entire database to find those columns and set value ?? or individual ga every table cheyala??

 

 

Link to comment
Share on other sites

  • Replies 71
  • Created
  • Last Reply

Top Posters In This Topic

  • Yuvatha

    22

  • mtkr

    19

  • agora

    9

  • Bairagi From Bapatla

    4

Popular Days

Top Posters In This Topic

system sp use chesi get list of all tables in to table variable n loop thru n update...

 

column names etu different vundi vuntayi even if its the same column in diff tables.. if so... there is no easy way but to write update queries for each ... 

 

calling experts pawan-kalyan-trivikram-laugh-gif.gif

Link to comment
Share on other sites

SELECT 'UPDATE ',name,' SET XYZ column=2000 WHERE XYZ column=1000' FROM sysobjects
WHERE Type='U'

 

vachina result set ni run chei

Link to comment
Share on other sites

system sp use chesi get list of all tables in to table variable n loop thru n update...

 

column names etu different vundi vuntayi even if its the same column in diff tables.. if so... there is no easy way but to write update queries for each ... 

 

calling experts pawan-kalyan-trivikram-laugh-gif.gif

i did that...anni update queries manager ki ivalante siggestundi Brahmi-2.gif

Link to comment
Share on other sites

SELECT 'UPDATE ',name,' SET XYZ column=2000 WHERE XYZ column=1000' FROM sysobjects
WHERE Type='U'

 

vachina result set ni run chei

:3D_Smiles:  :3D_Smiles:

Link to comment
Share on other sites

kaduga :(

 

 

each table has multiple columns with that data..

ha ha ala ayithe okko daniki okko update script rayalsinde...

Link to comment
Share on other sites

×
×
  • Create New...