产品动态
公告
* | SELECT [列名(KEY)] FROM table1 JOIN_TYPE table2 ON table1.key=table2.key
ON table1.key=table2.key) ,返回两个表的笛卡尔积(所有可能的组合)。ON table1.key=table2.key。也可同时指定过滤条件,例如 ON (table1.key=table2.key and table2.key='xxx'),将会先按照指定条件过滤原始表中的数据,再进行连接查询。* |selectlog.ip,log.url,log.user_id,userinfo.Name,userinfo.Genderfromlogleft join userinfo on log.user_id = userinfo.idlimit10000

* |selecterrorCount,allCount,table1.url as urlfrom(selectcount(*) as errorCount,urlwherestatus_code != 200group byurl) as table1inner join (selectcount(*) as allCount,urlgroup byurl) as table2 on table1.url = table2.url

文档反馈