You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
合成的sql语句为:
SELECT T1.* FROM (SELECT thinkphp., ROW_NUMBER() OVER ( ORDER BY rand()) AS ROW_NUMBER FROM (SELECT ,(SELECT T1. FROM (SELECT thinkphp., ROW_NUMBER() OVER ( ORDER BY rand()) AS ROW_NUMBER FROM (SELECT COUNT(*) AS think_count FROM [d_equipment] [count_table] WHERE ( [count_table].[customer_id] =d_customer.customer_id ) ) AS thinkphp) AS T1) AS [equipments_count] FROM [d_customer] WHERE [customer_id] IN (1,2,3) ) AS thinkphp) AS T1
比如使用模型关联统计的时候会报错:
SQLSTATE[42000]: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]当没有用 EXISTS 引入子查询时,在选择列表中只能指定一个表达式。
我总表的hasMany添加了,明细表的belongsTo也添加了,按着教程的做都报错
The text was updated successfully, but these errors were encountered: