I have two mysql table t1 & t2
t1 has one field called 'name'
' t2 has two field called 'name' and 'date', where 'date' field set as current timestamp in default
I need to import all data from t1 to t2
INSERT into T2 SELECT * FROM t1
query is not working, its saying that count of fields are not same
How can i modify this query?
INSERT INTO t2(NAME)SELECT名称FROM t1
Insert into t2 select name from t1
Try and let me know
插入到t2(名称)(从t1中选择名称)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.