tags:

views:

31

answers:

1

I have two tables like Temp1 and Temp2

The Table Temp1 have id and Col1 fields and The Table Temp2 have id and Col2 fields

I need to update the two table fields Col1 and Col2 using single query in SQL.

Can anyone help me??????

A: 

You can't update 2 tables in single SQL. Use stored procedure or transaction

Riho
ok riho....!thanks for your reply.ok..... i need Stored procedure or transaction..please give some examples...
Manikandan S
Read the manuals for your database system. It is different in MSSQL, Oracle, MySQL,Firebird, etc.
Riho