Returns the quoted version of a string.
Unit SysUtils
Category String handling routines
Delphi syntax: function QuotedStr(const S: string): string;
Description Use QuotedStr to convert the string S to a quoted string. A single quote character (‘) is inserted at the beginning and end of S, and each single quote character in the string is repeated.
Note: When working with multi-byte character systems (MBCS), use AnsiQuotedStr instead.
Example
SQL.Add(format( ‘select * from tabname where field1 = %s’, [QuotedStr(Edit1.Text)]));
转载于:https://www.cnblogs.com/gleam/archive/2008/12/11/1352580.html
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/183628.html原文链接:https://javaforall.cn