node.js로 mysql쿼리
-
node.js mysql query카테고리 없음 2022. 1. 19. 01:49
npm i mysql Performing queries The most basic way to perform a query is to call the .query() method on an object (like a Connection, Pool, or PoolNamespace instance). The simplest form of .query() is .query(sqlString, callback), where a SQL string is the first argument and the second is a callback: connection.query('SELECT * FROM `books` WHERE `author` = "David"', function (error, results, field..