大家好,又见面了,我是你们的朋友全栈君。如果您正在找激活码,请点击查看最新教程,关注关注公众号 “全栈程序员社区” 获取激活教程,可能之前旧版本教程已经失效.最新Idea2022.1教程亲测有效,一键激活。
Jetbrains全系列IDE稳定放心使用
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.net/183628.html原文链接:https://javaforall.net