11智能在线
新记
能不能一条sql查询出姓名为‘张三’的以及,superId等于 所有张三的id.
如题所述
举报该文章
相关建议 2012-05-31
select * from 表名 where NAME='张三'
这样找出所有张三了,没懂你后面的意思。。
温馨提示:内容为网友见解,仅供参考
当前网址:
https://11.t2y.org/zz/s8fqmpps8.html
其他看法
第1个回答 2012-06-01
select * from 表名 where name=“张三” and superId=""
第2个回答 2012-06-02
select * from table where username=‘张三’ and superid=(select id from table where name=‘张三’)
相似回答
大家正在搜
相关问题
能不能一条sql查询出姓名为‘张三’的,以及superId为...
写sql,要求:查出名字是张三的id最大的那一行的全部信息
一个Sql 查询问题,如何查询"姓名"等于“张”的所有记录
SQL 2008查询名字等于张三的语句
关于sql语句,现有一张学生表要求从表中查询出名字为张三和李...
sql单表一对多查询,表中有两列一列为id一列是姓名,比如“...
求SQL代码 把张三加入通讯录 获取ID后 把这个ID 加入...
关于sql语句,现有一张学生表要求从表中查询出名字为张三和李...