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

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

WBOY
Release: 2016-06-13 13:05:45
Original
842 people have browsed it

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

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template