1
を取り付けるsqlcipher:http://sqlcipher.net/sqlcipher-api#attach私はsqlcipher APIドキュメントで例えば以下いデータベース
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)があり、それは何ですか?
誰かが、a、bがテーブルの列であることを示唆しました。 – Gandalf