Skip to content

Instantly share code, notes, and snippets.

@yishai-glide
Created December 27, 2015 12:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yishai-glide/d3c01cc49d2b4745dede to your computer and use it in GitHub Desktop.
Save yishai-glide/d3c01cc49d2b4745dede to your computer and use it in GitHub Desktop.
// create CUSTOMER table
db.execSQL("CREATE TABLE \"CUSTOMER\" (" + //
"\"_id\" INTEGER PRIMARY KEY ," + // 0: id
"\"NAME\" TEXT NOT NULL );"); // 1: name
// create NOTE table
db.execSQL("CREATE TABLE \"NOTE\" (" + //
"\"_id\" INTEGER PRIMARY KEY ," + // 0: id
"\"TEXT\" TEXT NOT NULL ," + // 1: text
"\"COMMENT\" TEXT," + // 2: comment
"\"DATE\" INTEGER);"); // 3: date
// create ORDERS table
db.execSQL("CREATE TABLE \"ORDERS\" (" + //
"\"_id\" INTEGER PRIMARY KEY ," + // 0: id
"\"DATE\" INTEGER," + // 1: date
"\"CUSTOMER_ID\" INTEGER NOT NULL );"); // 2: customerId
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment