여기에 약간의 구문 문제가 있습니다. 나는 SQL과 ASP를 사용하여 지금까지이 코드를 가지고있어 :SQL 변수를 ASP에 전달
Dim, ASPID
ASPID = @testID
Response.write(ASPID)
: 그것이
response.write
예에서 쓸 수 있도록 내가 ASP에 SQL 변수 @testID
을 통과 할 방법
set rs=Server.CreateObject("ADODB.recordset")
rs.Open "Select * from Questions", conn
sql="INSERT INTO Questions(QuestionText, QuestionType)"
sql=sql & " VALUES "
sql=sql & "('" & qtext & "',"
sql=sql & "'" & "checkbox" & "');"
sql=sql & "DECLARE @testID int;"
sql=sql & "SET @testID = @@identity;"
on error resume next
conn.Execute sql,recaffected
if err<>0 then
Response.Write("An Error Has Occured")
else
end if
을
(분명히 잘못되었습니다.) 누구든지이 작업을 수행하는 방법을 알려주시겠습니까? 죄송합니다. 일부 사람들에게는 너무 단순합니다. P
의 중복 가능성 http://stackoverflow.com/questions/21626338/sql- 청소기는 이와 같은 함수를 사용 될 with-asp-syntax) – Lankymart