Skip to content

Instantly share code, notes, and snippets.

@kevin3
Created March 22, 2013 18:10
Show Gist options
  • Save kevin3/5223479 to your computer and use it in GitHub Desktop.
Save kevin3/5223479 to your computer and use it in GitHub Desktop.
trial sql create table for a record of stock transactions
Create Table "main"."transactions"
CREATE TABLE IF NOT EXISTS "main"."transactions" ("tid" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL ,
"stkcode" TEXT NOT NULL ,
"stkname" TEXT, "qty" INTEGER NOT NULL ,
"broker" TEXT NOT NULL ,
"price" REAL NOT NULL ,
"targetprice" REAL,
"stoploss" REAL,
"longshort" TEXT NOT NULL ,
"date" TEXT NOT NULL ,
"time" TEXT NOT NULL )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment