Link to home
Start Free TrialLog in
Avatar of rgb192
rgb192Flag for United States of America

asked on

update same table from another database

update db1.table1 set varcharCol=null
where db2.table1.varcharCol=null
SOLUTION
Avatar of chaau
chaau
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks mwvisa. I have noticed that after I have written my post. You are right, for MySQL server the syntax will be slightly different
Avatar of rgb192

ASKER

I am using mysql not microsoft sql

will this solution work for mysql
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rgb192

ASKER

this updates one table with values from another, thanks