这是一个表格:
create table table1 (
id integer primary key,
user_id varchar(36),
field1 varchar(100))
如何选择与特定id行所属的用户相关联的行。我想能够查看行,通过id选择消息,并选择所有与同一用户相关联的行。
select * from table1
where user_id = -- the same as of the row with id = 3 for example