我正在尝试使用php进行此查询:
$sql= "SELECT pcampo6 FROM productos WHERE id >= 100";
这是我得到的错误:
Invalid query: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '= 100' at line 1
我也尝试过:
$sql = "SELECT `pcampo6` FROM productos WHERE eliminado=0 AND `id` >= 101";
$sql = "SELECT 'pcampo6' FROM productos WHERE eliminado=0 AND 'id' >= 101";
$sql = "SELECT pcampo6 FROM productos WHERE eliminado=0 AND id >= '101'";