TDengine数据库调试时如何记录sql命令?

How to record the sql command while debugging in TDengine database?

TDengine数据库调试时如何记录SQL命令?
我想将 SQL 命令记录保存在 TDengine 数据库中,以检查 SQL 命令是否与预期相同。有什么办法可以实现吗?

在/etc/taos/tao.cfg 或 C:\TDengine\cfg\taos.cfg 文件中,您可以更改以下设置

# enable/disable recording the SQL in taos client
# enableRecordSql    0

# enable/disable recording the SQL in taos client
enableRecordSql    1