我有 3 张桌子:
users:
uid int(11) - userid(primary key, auto_increment)
name varchar(255)
pass varchar(64)
created int(11)
projects:
pid int(11) .....
name varchar(150)
description varchar(255)
created int(11)
users_projects:
uid int(11) - user id
pid int(11) - product id
查询是什么:为具有特定名称的用户显示按名称排序的项目(名称和描述)?
这是我到目前为止所得到的:
SEECT name,description FROM projects ORDER BY name ASC