SQlite: select into?

前端 未结 4 1564
Happy的楠姐
Happy的楠姐 2020-12-01 00:57

I\'m not sure if I can use select into to import data from another table like this:

select * into
  bookmark1 
from bookmark;    

Is it tru

4条回答
  •  臣服心动
    2020-12-01 01:09

    I assume that bookmark1 is a new table that you have created which is same as the bookmark table. In that case you can use the following format.

    CREATE TABLE bookmark1 AS SELECT * FROM bookmark;
    

    Or you can also use the insert statement with subquery. For different insert statement options refer: SQL As Understood By SQLite

提交回复
热议问题