我有这样的疑问:
SELECT `type` FROM `data_user` table1 INNER JOIN
`user_type` table2 ON table1.username = 'sber'
我从 中获取所有行user_type,但我只需要表user_type中 id 等于 id的类型值data_user。
如何解决我想要的这个查询?
我有这样的疑问:
SELECT `type` FROM `data_user` table1 INNER JOIN
`user_type` table2 ON table1.username = 'sber'
我从 中获取所有行user_type,但我只需要表user_type中 id 等于 id的类型值data_user。
如何解决我想要的这个查询?