我真的不知道如何解释这一点,但我基本上想要查看表格属性中的2个特定内容。 该表是:
name => "simples"
age => "Monday"
<小时/> 我该如何检查这两个?我认为它看起来像:
$query = "SELECT *
FROM `data`.`user`
WHERE `user`.`name` = 'simples'
AND `user`.`age`='monday';";
答案 0 :(得分:0)
查询:
SELECT * FROM user where name='simples' AND age='Monday'
答案 1 :(得分:0)
编写简单查询:
基本语法:
select * from databasename.tablename where column_name1 = value1 and column_name2 = value2
例如:
SELECT * FROM data.user WHERE name = 'simples' AND age = 'Monday'