File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ const db = new SQL.Database();
4040
4141
4242// Execute a single SQL string that contains multiple statements
43- sqlstr = " CREATE TABLE hello (a int, b char); \
43+ let sqlstr = " CREATE TABLE hello (a int, b char); \
4444INSERT INTO hello VALUES (0, 'hello'); \
4545INSERT INTO hello VALUES (1, 'world');" ;
4646db .run (sqlstr); // Run the query without returning anything
@@ -60,13 +60,6 @@ stmt.free();
6060// You can not use your statement anymore once it has been freed.
6161// But not freeing your statements causes memory leaks. You don't want that.
6262
63- // Execute a single SQL string that contains multiple statements
64- let sqlstr =
65- " CREATE TABLE hello (a int, b char); \
66- INSERT INTO hello VALUES (0, 'hello'); \
67- INSERT INTO hello VALUES (1, 'world');" ;
68- db .run (sqlstr); // Run the query without returning anything
69-
7063const res = db .exec (" SELECT * FROM hello" );
7164/*
7265[
You can’t perform that action at this time.
0 commit comments