SELECT U.[id] AS [用户ID], I.[用户名] AS [用户名], I.[性别] AS [性别]
FROM [用户表] U
LEFT JOIN [信息表] I ON U.[id]=I.[用户id]
WHERE U.[标识]=1
------解决方案--------------------
------解决方案--------------------
SQL code
SELECT U.[id] AS [用户ID], I.[用户名] AS [用户名], I.[性别] AS [性别]
FROM [用户表] U, [信息表] I where U.[id]=I.[用户id] and U.[标识]=1