fetchSql (chain operation 17)


For example

echo Db::table('user')->fetchSql(true)->find(1);

the output result is:

SELECT * FROM user where `id` = 1