Home  >  Article  >  Backend Development  >  mysql数据库中sql语句有关问题

mysql数据库中sql语句有关问题

WBOY
WBOYOriginal
2016-06-13 10:56:59752browse

mysql数据库中sql语句问题!
查询语句:
select * from 表名 where 条件;
这个我知道什么意思;
可是select * from 数据库名字.".$NowItemData." where 条件!
数据库中没有.".$NowItemData." 表
这是什么意思呢!

------解决方案--------------------
$NowItemData 是 php 变量,你echo 下就知道了
------解决方案--------------------
.$NowItemData:是变量,内容应该是个表名

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn