Skip to content

Instantly share code, notes, and snippets.

@tekk555
Created August 11, 2013 15:51
Show Gist options
  • Save tekk555/6205438 to your computer and use it in GitHub Desktop.
Save tekk555/6205438 to your computer and use it in GitHub Desktop.
Sqlite3のBLOBインサートSQL
CREATE TABLE TEST(
DATA_ID INTEGER,
DATA_AREA BLOB,
CONSTRAINT TEST_PKEY PRIMARY KEY (DATA_ID)
);
echo "insert into test(DATA_ID, DATA_AREA) values(1,x'"$(hexdump -v -e '1/1 "%02x"' bin.dat)"');"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment