Samle data without query
This commit is contained in:
parent
7ae6cce6b4
commit
a5399c9335
1 changed files with 0 additions and 6 deletions
|
@ -35,12 +35,6 @@ INSERT INTO user_roles(user_id,project_id,p_role)
|
|||
VALUES (2,1,"project_manager");
|
||||
|
||||
|
||||
SELECT p.id, p.name, p.description
|
||||
FROM projects p
|
||||
JOIN user_roles ur ON p.id = ur.project_id
|
||||
JOIN users u ON ur.user_id = u.id
|
||||
WHERE u.username = 'admin';
|
||||
|
||||
SELECT id FROM users WHERE username = "admin"
|
||||
|
||||
SELECT id FROM users WHERE username = "user"
|
||||
|
|
Loading…
Reference in a new issue