Page is a not externally linkable
- Code, Content, and Presentation
-- Databases
---- Insert into select


LifeinAsia - 4:55 pm on Dec 7, 2010 (gmt 0)


It depends on what database you're using. For example, if you're using MS SQL, the following should work (assuming you have the proper permissions for both databases):
INSERT INTO b.dbo.data (test)
SELECT a.dbo.data.test
WHERE test=0


Thread source:: http://www.webmasterworld.com/databases_sql_mysql/4239672.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com