老师讲的不错 我学习后端的 对SQL 语句还是有些研究的 看了老师讲课的内容 我感觉我对MySQL又多了一层的理解!!!太棒了!!
2017-04-08
已采纳回答 / 宇宙_king
FLOOR"向下取整",判断的时候,只考虑小数位。当是正数的时候,小数位舍弃。当是负数的时候,整数位增1。SELECT FLOOR(3.99); 返回3, 小数位全部舍弃。SELECT FLOOR(-3.99); 返回-4. 小数位全部舍弃, 整数位增1。
2017-04-08
SELECT goods_id,goods_name,goods_price FROM tdb_goods
WHERE goods_price = ALL (SELECT goods_price FROM tdb_goods
WHERE goods_cate='超级本');
SELECT goods_id,goods_name,goods_price FROM tdb_goods
WHERE goods_price <> ALL (SELECT goods_price FROM tdb_goods
WHERE goods_cate='超级本');
你们说看不清的代码
WHERE goods_price = ALL (SELECT goods_price FROM tdb_goods
WHERE goods_cate='超级本');
SELECT goods_id,goods_name,goods_price FROM tdb_goods
WHERE goods_price <> ALL (SELECT goods_price FROM tdb_goods
WHERE goods_cate='超级本');
你们说看不清的代码
2017-04-08
已采纳回答 / Navy_D
举个粟子:一个字节占8位如11111111,如果是无符号位则所有位数表示数值的大小,既是255,若是有符号位,最高位1则表示负数,0位正数,即剩下的7位表示数值大小1111111,是127,由于是负数即-127所以TINYINT UNSIGNED 0<range<255 SIGNED -127<range<127
2017-04-08