Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设我有 3 张桌子;
第一个 table_1 包含 3 列:
另一个表 table_2 包含列:
如何编写一个带有两个参数(a,b)的函数来返回一个连接表:
select * from table_1 where data =a
和:
select * from table_2 where year = b
像这样的东西?
Select * from table_1 inner join table_2 on table_1.data = a and table_2.year = b