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 SQL Syntax problem.

Status
Not open for further replies.

MarkButler

Programmer
Feb 22, 2001
83
US
I must admit that I am not familiar with the SQL UPDATE. I use the SQL SELECT for various reports without a problem but I have a need to update a value from one table to another. I tried the following query and am getting
a syntax problem pointing to the "FROM" clause. Any help would be appreciated. Following is the query as I currently have it.

-----
update employer set employer.bondindemnity = emplcust.ins_bond from
employer, emplcust where employer.employer=emplcust.employer
-----

TIA

--

Mark Butler
 
The above syntax works in MS SQL. For Pardox is should be a sub query as follows.

---
UPDATE employer SET employer.bondindemnity = (SELECT ins_bond FROM emplcust WHERE emplcust.employer = employer.employer)
---

FYI
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top