📄 loading the sql property from a file.htm
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<title>Loading the SQL property from a file</title>
</head>
<body>
<table border="0" width="100%" style="font-size: 9pt">
<tr>
<td width="100%"><strong>调用LoadFromFile从文件中读取SQL语句</strong><br>
也可以调用LoadFromFile从文件中获取SQL语句,这主要是因为TStrings对象支持文件操作。LoadFromFile会自动把原来的SQL语句清掉。比如:<big><br>
</big><br>
CustomerQuery.Close;<br>
CustomerQuery.SQL.LoadFromFile('c:\orders.txt');<br>
CustomerQuery.Open;<hr size="1">
<p align="center"><a href="mailto:ilovedelphi@163.net">RainBow</a><font color="#ffffff">。</font>策划制作
版权所有</td>
</tr>
</table>
<p> </p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -