query = " INSERT INTO mainTable(NAME, KIND) VALUES('신규등록테스트', 0) "
query = query & "SELECT @@IDENTITY "
Set rsSet = oConn.Execute(query)
Set rsSet2 = rsSet.NextRecordSet
idenKey = rsSet2.Fields(0) 'PK
rsSet2.Close
Set rsSet2 = Nothing
Set rsSet = Nothing
'classic asp' 카테고리의 다른 글
[classic asp] 엑셀파일 읽기 (0) | 2024.02.03 |
---|---|
[classic asp] json 생성 (0) | 2023.03.01 |
[classic asp] 리스트 데이터 정렬 (0) | 2022.09.06 |
[classic asp] 숫자를 한글로 변환 (0) | 2021.12.03 |
[classic asp] IE 브라우저 확인 (0) | 2021.11.29 |