SQLInsert

 

SQLInsert 함수는 하나의 열을 삽입하는 SQL 함수이다.

 

void @SQLInsert(int id, string tablename, string bindlist);

 

함수인자

int id : 연결된 접속 번호

string tablename : 사용할 테이블 명

string bindlist : 사용할 bind list

 

반환 값

없음

 

예제1

@SQLInsert($AddrID, "Table1", "bindaddr");

문장설명 : 연결된 데이터 베이스의 Table1 테이블의 bindaddr 리스트에 새로운  레코드를 삽입한다.

 

 

예제2

id = @SQLConnect("ODBCDNSName","","");

@SQLInsert(id, "Table1","BindList");

@SQLDisconnect(id);

문장설명

ODBC로 연결된 데이터베이스 원본파일의 테이블 Table1에 SQL연결설정에서 BindList에 연결된 태그들의 값을 연결 데이터베이스의 필드로 값들을 추가 시킨다. 즉, Table1에 새로운 레코드를 추가 시킨다.