Fix mysql table creation sql
This commit is contained in:
parent
afff5dc157
commit
3c5ed1e58a
@ -14,9 +14,9 @@ A node query builder for various SQL databases, based on CodeIgniter's query bui
|
|||||||
query.select('foo')
|
query.select('foo')
|
||||||
.from('bar')
|
.from('bar')
|
||||||
.where('x', 3)
|
.where('x', 3)
|
||||||
.orWhere('y', 2)
|
.orWhere({y: 2})
|
||||||
.join('baz', 'baz.boo = bar.foo', 'left')
|
.join('baz', 'baz.boo = bar.foo', 'left')
|
||||||
.orderBy('x')
|
.orderBy('x', 'DESC')
|
||||||
.limit(2, 3)
|
.limit(2, 3)
|
||||||
.get(function(/* Adapter dependent arguments */) {
|
.get(function(/* Adapter dependent arguments */) {
|
||||||
// Database module result handling
|
// Database module result handling
|
||||||
|
@ -103,9 +103,9 @@ var query = nodeQuery('mysql', connection, 'mysql2');
|
|||||||
query.select('foo')
|
query.select('foo')
|
||||||
.from('bar')
|
.from('bar')
|
||||||
.where('x', 3)
|
.where('x', 3)
|
||||||
.orWhere('y', 2)
|
.orWhere({y: 2})
|
||||||
.join('baz', 'baz.boo = bar.foo', 'left')
|
.join('baz', 'baz.boo = bar.foo', 'left')
|
||||||
.orderBy('x')
|
.orderBy('x', 'DESC')
|
||||||
.limit(2, 3)
|
.limit(2, 3)
|
||||||
.get(function(/* Adapter dependent arguments */) {
|
.get(function(/* Adapter dependent arguments */) {
|
||||||
// Database module result handling
|
// Database module result handling
|
||||||
|
@ -5,7 +5,8 @@
|
|||||||
-- Table structure for table `create_join`
|
-- Table structure for table `create_join`
|
||||||
--
|
--
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `create_join` (
|
DROP TABLE IF EXISTS `create_join`;
|
||||||
|
CREATE TABLE `create_join` (
|
||||||
`id` int(10) NOT NULL,
|
`id` int(10) NOT NULL,
|
||||||
`key` text,
|
`key` text,
|
||||||
`val` text
|
`val` text
|
||||||
@ -17,7 +18,8 @@ ALTER TABLE `create_join`
|
|||||||
-- Table structure for table `create_test`
|
-- Table structure for table `create_test`
|
||||||
--
|
--
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `create_test` (
|
DROP TABLE IF EXISTS `create_test`;
|
||||||
|
CREATE TABLE `create_test` (
|
||||||
`id` int(10) NOT NULL,
|
`id` int(10) NOT NULL,
|
||||||
`key` text,
|
`key` text,
|
||||||
`val` text
|
`val` text
|
||||||
|
Loading…
Reference in New Issue
Block a user