My table (user_tran)有3个字段"user_id“、"time_stamp”查询是
select user_id from user_tran where transaction_id = 1 and time_stamp > now() - 3 days;select transaction_id from user_tran where user_i
,它保存了来自多所大学的学生的数据,现在我从外部获得了一些数据,需要与我的数据库中的数据进行比较。另一种方法是使用where ID = <id> and name = <name> and so on...进行选择查询
查询这两个查询的复杂性(考虑ID为主键):
where ID = <id> and n