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

UPDATE

Status
Not open for further replies.

cards4

Technical User
Dec 9, 2004
38
US
Hello,
I need to update 3 columns on a table with new data. However, when I try to update the table with this query:
update phbasic set emp_id='???', empno='???', soc_sec_no='????'
where emp_id='???', empno='???', soc_sec_no='???'
It gives me an error.

I haven't done much SQL work dealing with UPDATE. Please help. Thank you.

The ??? represent data and is not in my acutal query.
 
Hi Cards,

Code:
where emp_id='???', empno='???', soc_sec_no='???'

should be

Code:
where emp_id = '???' [b]AND[/b] empno = '???' [b]AND[/b] soc_sec_no = '???'

Hope this helps,

Alex

It's a magical time of year in Philadelphia. Eagles training camp marks the end of another brutal season of complaining about the Phillies.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top