select Item.ItemID,Item.ItemNo,ItemName,
(select Price from ItemPrice,Item where Item.ItemID=ItemPrice.ItemID and
ItemPrice.ItemPriceID='1') as Price1,
(select Price from ItemPrice,Item where Item.ItemID=ItemPrice.ItemID and ItemPrice.ItemPriceID='2') as Price2,
(select Price from ItemPrice,Item where Item.ItemID=ItemPrice.ItemID and ItemPrice.ItemPriceID='3') as Price3
from Item,ItemPrice
Where Item.ItemID=ItemPrice.ItemID
(select Price from ItemPrice,Item where Item.ItemID=ItemPrice.ItemID and
ItemPrice.ItemPriceID='1') as Price1,
(select Price from ItemPrice,Item where Item.ItemID=ItemPrice.ItemID and ItemPrice.ItemPriceID='2') as Price2,
(select Price from ItemPrice,Item where Item.ItemID=ItemPrice.ItemID and ItemPrice.ItemPriceID='3') as Price3
from Item,ItemPrice
Where Item.ItemID=ItemPrice.ItemID
解决方案 »
- silverlight异步请求 httpwebrequest
- 重新发布菜鸟问题
- 新手求助:在类中如何控制窗体中控件或调用窗体事件?
- 一个关于(getdate())的问题!!!!
- 因流量增加而导致服务器并发情况,服务器受不了了,各位大大教下该怎么办吧。。。。
- 我在c++里面有这样一段函数,是串口用的,我在c# 调用这个函数,居然返回来得值是,难道c#不能调用c++的程序,发毛!!
- 如何让程序调用WebService时不共享使用IE设置的代理?
- winform的treeview显示不了节点的图片是怎么回事情?
- 一个用户登陆以后. 用其他的IP 在次登陆. 怎么才能把第一个用户踢掉线
- 看书上说:“使用【C#字段向导】对话框为窗体Form1添加一个字段”,要问得是【C#字段向导】从哪可以调出来?
- 紧急求问,技术部人员工资发放的形式???谢谢了,急!
- C#里面调用vc++里的函数,献分,急!
你可以先分開來把每次的price取出來,然後通過ItemID把3個連起來.有的時候不一定要一次行就寫出來分步寫容易理解.
樓上就是這個意思