且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

MySQL从一个表中选择所有列,从另一表中选择一些列

更新时间:2022-12-09 15:10:58

只需使用表名:

SELECT myTable.*, otherTable.foo, otherTable.bar...

这将从myTable中选择所有列,并从otherTable中选择foobar列.

That would select all columns from myTable and columns foo and bar from otherTable.