刚开始学sql 希望大家多多帮忙

来源:百度知道 编辑:UC知道 时间:2024/05/27 14:48:29
select mall.itemtype ,itemtype.money_price from mall,itemtype where mall.itemtype=itemtype.id

看不明白这个是什么意思

就是把mall表中itemtype字段的值和itemtype表中id字段内容相同的记录取出来,在页面显示mall表中itemtype字段和itemtype表中money_price字段的内容

查询在mall.itemtype=itemtype.id的条件下
MAIL表中的itemtype ,和ITEMTYPE表中的money_price