我有一个 Excel 文档,其中 A 列中的表名和 B 列中的列名。
A1 B1
Account Account_ID
我可以得到正确的语法。
公式为:
=CONCATENATE("Select '",$A$1,"','",B1,"',",B1,", count(*) From ",$A$1, " group by '",",B1,";")
我得到的输出是:
Select 'ACCOUNT','ACCOUNT_ID',ACCOUNT_ID, count(*) From ACCOUNT group by 'ACCOUNT','ACCOUNT_ID',ACCOUNT_ID;
我需要的输出是:
Select 'ACCOUNT','ACCOUNT_ID',ACCOUNT_ID, count(*) From ACCOUNT group by ACCOUNT_ID;
任何帮助将不胜感激。