MySQL Query抛出错误'mysql_num_rows()期望参数1是资源,布尔给定'

时间:2012-03-20 20:17:52

标签: mysql sql

我对mysql有些新手,我有一个错误的查询,我无法弄明白。

SELECT field1, field2, field3, field4 AS name, title, url, description FROM table_data

1 个答案:

答案 0 :(得分:1)

你试过这个吗?

SELECT field1 as 'name'
      , field2 as 'title'
      , field3 as 'url'
      , field4 as 'description'
FROM  table_data