急急急!!!mysql多表查询
SQL code:
select `product_list`.`ProductID`,`software_shop_detail`.`Price` + `hardware_shop_detail`.`Price` price
from `product_list`,`software_shop_detail`,`hardware_shop_detail`
where
`product_list`.`ProductID` = `software_shop_detail`.`ProductID`
and
`product_list`.`ProductID` = `hardware_shop_detail`.`ProductID`
order by `product_list`.`ProductID`
怎么查不出数据。在线等。
MYSQL帮顶,你那些点点都有问题吧
应该是有问题,怎么也查不出数据 急啊
大虾都睡这么早么。
来帮帮忙,小弟还等着解决吃饭!
C# code:
using System.wocao;using System;
MYSQL不会啊 建议去MYSQL问
`product_list`,`software_shop_detail`,`hardware_shop_detail`
你这三个表中都有数据吗?
有符合条件
`product_list`.`ProductID` = `software_shop_detail`.`ProductID` and `product_list`.`ProductID` = `hardware_shop_detail`.`ProductID`
的记录吗?
估计没有!
End_rbody_61601835//-->
该回复于2009-12-03 16:31:58被版主删除
对我有用[0]
丢个板砖[0]
引用
举报
管理
TOP
wuwei_longlong
(wuwei_longlong)
等 级:
#8楼 得分:0回复于:2009-12-03 09:37:20
相关问答:
这个视频讲的很详细, 对新手非常有用, 基本上一看就懂
由于太大了(50m, 我只能上传20m), 我上传不了, 只好贴出下载地址
下载地址: http://ftel1.3800hk.com/0807/080720djxnzj.rar
好东西,下个看看
......
不知道是不是我的xampp有问题,mysql是图形化的!
一个ID组在我的mysql的表里面 2,5,8,7
点了排序,然后用PHP文件连接这个表显示表的信息时,ID的顺序还是不变!应该是2,5,7,8的吧升序排序后!
在PHP文件里 ......
SQL code:
CREATE PROCEDURE A()
BEGIN
DECLARE 'Constraint Violation'
CONDITION FOR sqlexception;
DECLARE EXIT HANDLER FOR
'Constraint Violation' ROLLBACK;
BEGIN TRAN ......
请高手指点,我对一张表查询后再更新,查询是子查询,报错:
You can't specify target table 'a_table' for update in from clause
完整SQL语句是
UPDATE a_table SET STATUS=0 WHERE ID=(SELECT MIN(ID) from a_tab ......