求教nodejs连接mysql查询出来的结果和命令
1个回答
展开全部
举个例子:
DELIMITER $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `Select_bad`()
BEGIN
select id,name,age,sex,punch1
from test0
where id = (
select id
from test1
where flag = 0
);
END
查询语句:
select id,name,age,sex,punch1
from test0
where id in --等号改成in
(
select id
from test1
where flag = 0
);
DELIMITER $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `Select_bad`()
BEGIN
select id,name,age,sex,punch1
from test0
where id = (
select id
from test1
where flag = 0
);
END
查询语句:
select id,name,age,sex,punch1
from test0
where id in --等号改成in
(
select id
from test1
where flag = 0
);
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询