Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

UPDATE/SET

Status
Not open for further replies.

pabby

IS-IT--Management
Jan 5, 2004
47
GB
hi,

I have a table with a column called test. When I input data into this table the TEST column does not get populated - this is deliberate. I have been manually updating this column with an alphabetic letter so that I can then run a query "Select * from tblname where TEST = 'a'. This way I can pull certain records. Up till this point the TEST column is full of <NULL>'s

I have been trying to update the table by saying something like "UPDATE TBLWHATEVER SET TEST = 1 WHERE TEST = 'NULL'

THIS IS NOT WORKING ,

ANY IDEAS ?

THANKS,
PAUL
 
WHERE TEST IS NULL


“I sense many useless updates in you... Useless updates lead to defragmentation... Defragmentation leads to downtime...Downtime leads to suffering..Defragmentation is the path to the darkside.. DBCC INDEXDEFRAG and DBCC DBREINDEX are the force...May the force be with you" --
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top