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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

COMBINING ITEMS IN AN UPDATE

Status
Not open for further replies.

DCB1

Technical User
Jun 25, 2003
1
US
HOW DO YOU COMBINE TO ITEMS IN AN UPDATE STATEMENT.
I.E.
UPDATE

SET [COLUMN.NAME] = "123456" AND TABLE.COLUMN.NAME
WHERE [CRITERIA]
THE STUFF BETWEEN THE QUOTES IS TEXT AND THE ITEM I WANT TO COMBINE IT WITH IS AN EXISTING COLUMN IN THE TABLE.
 
I'm assuming this is in the underlyinf relational table?

is it a column from the same row? if so

Update myTable
Set MyColumn = 'NewValue' + otherColumn
where myColumn = 'Criteria'

Should work. If you want a value from another row then things can get a bit more complex

"Shoot Me! Shoot Me NOW!!!"
- Daffy Duck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top