建立表pet
+----------+--------+---------+------+------------+------------+
| name     | owner  | species | sex  | birth      | death      |
+----------+--------+---------+------+------------+------------+
| Fluffy   | Harold | cat     | f    | 1993-02-04 | NULL       |
其他链接等等都正确了
 int res =mysql_query(mysql, "SELECT owner FROM pet");
这里返回非零。
如果int res =mysql_query(mysql, "SELECT sex FROM pet"); 就正确了。后来用mysql_real_query()函数,也是不行,请求解答。