我正在关注 sqlcipher Api 文档中的示例:http: //sqlcipher.net/sqlcipher-api#attach
ATTACH DATABASE 'encrypted.db' AS encrypted KEY 'secret'; -- create a new encrypted database
CREATE TABLE encrypted.t1(a,b); -- recreate the schema in the new database (you can inspect all objects using SELECT * FROM sqlite_master)
INSERT INTO encrypted.t1 SELECT * FROM t1; -- copy data from the existing tables to the new tables in the encrypted database
DETACH DATABASE encrypted;
第一行CREATE TABLE encrypted.t1(a,b);
有 (a,b) 和第二行
INSERT INTO encrypted.t1 SELECT * FROM t1;
才不是。
为什么第一行有一个(a,b),它是做什么用的?