Update node.js-sample-linux.js
This commit is contained in:
Родитель
8a914f2386
Коммит
f26a63ed89
|
@ -19,7 +19,7 @@ var Request = require('tedious').Request;
|
|||
var TYPES = require('tedious').TYPES;
|
||||
|
||||
function executeStatement() {
|
||||
request = new Request("SELECT c.CustomerID, c.CompanyName,COUNT(soh.SalesOrderID) AS OrderCount FROM SalesLT.Customer AS c LEFT OUTER JOIN SalesLT.SalesOrderHeader AS soh ON c.CustomerID = soh.CustomerID GROUP BY c.CustomerID, c.CompanyName ORDER BY OrderCount DESC;", function(err) {
|
||||
request = new Request("SELECT TOP 10 Title, FirstName, LastName from SalesLT.Customer;", function(err) {
|
||||
if (err) {
|
||||
console.log(err);}
|
||||
});
|
||||
|
@ -60,4 +60,4 @@ function executeStatement1() {
|
|||
});
|
||||
});
|
||||
connection.execSql(request);
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче