티스토리 뷰

Data.Win.ADODB.TADOQuery.SQL

Up to Parent: TADOQuery

Delphi

property SQL: TStrings read GetSQL write SetSQL;

C++

__property System::Classes::TStrings* SQL = {read=GetSQL, write=SetSQL};

Properties

Type

Visibility

Source

Unit

Parent

property

published

Data.Win.ADODB.pas

Data.Win.ADODB.hpp

Data.Win.ADODB

TADOQuery

Description

Contains the text of the SQL statement / to execute for the ADO query.

Use SQL / to provide the SQL statement that an ADO query component executes / when its ExecSQL or Open method is called.

The SQL statement provided to the SQL property / may contain replaceable parameters, / following standard ADO syntax conventions.

Parameters are created / and stored in the Parameters property.

At design-time, / edit the SQL statement using the String List editor invoked / by clicking the ellipsis button of the property in the Object Inspector.

At runtime, / use properties and methods of string list objects / to clear the current contents, / add new contents, or to modify existing contents.

 

ADO 쿼리에 대해 실행할 SQL 문의 텍스트를 포함합니다.

SQL을 사용하여 ExecSQL 또는 Open 메서드가 호출 될 때 ADO 쿼리 구성 요소가 실행하는 SQL 문을 제공합니다.

SQL 속성에 제공된 SQL 문에는 표준 ADO 구문 규칙에 따라 바꿀 수 있는 매개 변수가 포함될 수 있습니다. 매개 변수가 만들어지고 Parameters 속성에 저장됩니다.

디자인 타임에 Object Inspector에서 속성의 줄임표 단추를 클릭하여 호출되는 String List editor를 사용하여 SQL 문을 편집하십시오.

런타임 시 문자열 리스트 객체의 속성과 메서드를 사용하여 현재 내용을 지우고, 새 내용을 추가하거나 기존의 내용을 수정합니다.

 

with ADOQuery1 do begin
with SQL do begin
Clear;
Add('SELECT EmpNo, LastName, FirstName, HireDate');
Add('FROM Employee');
end;
Open;
end;

 

ADOQuery1->Close();
ADOQuery1->SQL->Clear();
ADOQuery1->SQL->Add("SELECT EmpNo, LastName, FirstName, HireDate");
ADOQuery1->SQL->Add("FROM Employee");
ADOQuery1->Open();

 

Note: The library / does not evaluate / the SQL sent to the database via a TADOQuery component.

The SQL used / must be valid for the particular database type accessed via ADO.

Any error messages passed back to the application / will have originated at the ADO or database level, / and so will have error codes and messages specific to those systems.

 

: 라이브러리는 TADOQuery 구성 요소를 통해 데이터베이스로 보낸 SQL을 평가하지 않습니다.

사용된 SQL ADO를 통해 액세스되는 특정 데이터베이스 유형에 대해 유효해야 합니다.

응용 프로그램으로 전달된 모든 오류 메시지는 ADO 또는 데이터베이스 수준에서 비롯되었으므로 해당 시스템의 오류 코드와 특정한 메시지가 있습니다.

 

replaceable 미국·영국 [rɪ|pleɪsəbl] 

대신할 수 있는

conventions 

(전산학) 규약(規約)

invoked 

적용된

ellipsis 미국·영국 [ɪ|lɪpsɪs] 

1. 생략   2. 생략 부호()

evaluate 미국·영국 [ɪ|vӕljueɪt] 

(양가치품질 등을) 평가하다

via 미국·영국 [|vaɪə;|vi:ə] 

1. (어떤 장소를) 경유하여   2. (특정한 사람시스템 등을) 통하여

particular 미국식 [pər|tɪkjələ(r)] 

1. 특정한   2. (보통보다 더 많거나 대단하여) 특별한   3. 까다로운

specific 미국·영국 [spə|sɪfɪk]

1. 구체적인, 명확한, 분명한   2. 특정한   3. 특유의, 독특한

 

출처: http://docwiki.embarcadero.com/Libraries/XE2/en/Data.Win.ADODB.TADOQuery.SQL

'프로그래밍 언어 > Delphi' 카테고리의 다른 글

[Reference] System.Classes.TStrings.Text  (0) 2017.01.08
[Reference] System.StrUtils.SplitString  (0) 2017.01.05
[Reference] TDataSet.FieldByName  (0) 2017.01.03
[Reference] TObject.Free  (0) 2017.01.02
[Reference] ADODB.TADOQuery  (0) 2016.12.31
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함