Skip to content

Instantly share code, notes, and snippets.

@mbainrot
Created April 25, 2015 23:57
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 mbainrot/ea9e31f14060a0a205f4 to your computer and use it in GitHub Desktop.
Save mbainrot/ea9e31f14060a0a205f4 to your computer and use it in GitHub Desktop.
Creation for the power monitoring table
CREATE TABLE IF NOT EXISTS `tbldailytotal` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`meterid` int(11) NOT NULL,
`day` int(11) NOT NULL,
`month` int(11) NOT NULL,
`year` int(11) NOT NULL,
`hour` int(11) NOT NULL,
`minute` int(11) NOT NULL,
`start_ts` int(11) NOT NULL,
`end_ts` int(11) NOT NULL,
`totalWH` double NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=15099 ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment