sql语句中where后可以跟多个字段限制查询结果么?

2025-03-22 16:15:57
推荐回答(2个)
回答1:

sql语句中where后可以跟很多个条件的,
比如:
select * from table where name='name' and sex='sex' or......
对于你要的结果:
Select * from Table where Name = '张三' and sex = '男'
引号 一写要在英文下输入!

回答2:

Select * from Table where Name = ‘张三’ and sex = ‘男’