最近看到一段代码,不怎么懂,请高手解释下,谢谢拉!
const DELE_DICT = 'DELETE FROM dictionary WHERE (TypeID=''%s'') and (classID=''%s'') and (entryID=''%s'')';
strSQL := format(DELE_DICT, [dict.typeID, dict._classID, dict.EntryID]);
为什么上面的%s要加引号,而有的时候没加引号,有什么区别?还有就是format是什么意思,有什么用法?谢谢!