标签: mysql database mysqli
我有一个数据库,其中包含6'6“等高度列表,我将如何查询?
我有权利哪些不起作用
SELECT Height, Weight FROM `students` WHERE Height = (6\'6\") AND Weight >= 200;
答案 0 :(得分:1)
SELECT Height, Weight FROM students WHERE Height = "6'6\"" AND Weight >= 200;
您仍然需要双引号,因为它们是字符串