var mysql = require('mysql');var connection = mysql.createConnection({ host : 'localhost', user : 'root', password : '13738471325', database : 'luoluo'}); connection.connect();connection.query('insert into kk set id=325,name=洛洛,age=17', function(err, rows, fields) { if (err) throw err; console.log("插入成功");});connection.end();
添加回答
举报
0/150
提交
取消