ÇöÀç ¼îÇθôÀ» ¿¬½ÀÇÏ°í Àִµ¥ µî·Ï¶õ¿¡¼ ¿¡·¯°¡ ³ª°Åµç¿ä...
SQL Äõ¸®¿¡¼ ¿¡·¯°¡ ³ª¿Ô´Âµ¥ °ª´Â Á¦µ¥·Î »Ñ·ÁÁö´Â °Í °°°Åµç¿ä
=============================================================
¿¡·¯¸Þ¼¼Áö
insert into bookinfo (name,class,bestyn,author,isbn,publish,year,price,ea,comment,imgsrc,regdate) VALUES ('beginnigg active server pages3','08','Y','ÃÖ±¤ÀÏ ¿ª','12-12345-123-1','Á¤º¸¹®È»ç','2000-10-19','33000',5,'ASP 3.0 Beginning..... ¾ÆÁÖ È®½ÇÇÕ´Ï´Ù.','¾øÀ½','2000-10-19 ¿ÀÀü 9:50:')
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC SQL Server Driver][SQL Server]Invalid column name 'comment'.
/bookshoppingmall/admin/book_regist.asp, line 42
==============================================================
ÇØ´ç¶óÀμҽº
bname= Request.Form("book_name")
bclass= Request.Form("book_class")
bbestyn = Request.Form("book_bestyn")
bauthor= Request.Form("book_author")
bisbn= Request.Form("book_isbn")
bpublish= Request.Form("book_publish")
byear= Request.Form("book_year")
bprice= Request.Form("book_price")
bea= Request.Form("book_ea")
bcomment= Request.Form("book_comment")
bimgsrc= trim(Request.Form("book_imgsrc"))
if bbestyn = "N" then
bestseller = "¾Æ´Ï¿À"
else
bestseller = "¿¹"
end if
if bimgsrc = "" then
bimgsrc = "¾øÀ½"
else
bimgsrc = bclass + "/" + bisbn + ".gif"
end if
bregdate=now
bregdate=left(bregdate,19)
visited = 0
point = 0
sql = "insert into bookinfo (name,class,bestyn,author,isbn,publish,year,price,ea,comment,imgsrc,regdate) VALUES ('" & bname & "','" & bclass & "','" & bbestyn & "','" & bauthor & "','" & bisbn & "','" & bpublish & "','" & byear & "','" & bprice & "'," & bea & ",'" & bcomment & "','" & bimgsrc & "','" & bregdate & "')"
========>¿¡·¯ºÎºÐ
response.write sql
sql2 = "select * from bookclass where class='" & bclass & "'"
Set rs = DbCon.execute(sql)
Set rs2 = DbCon.Execute(sql2)
bclassname = rs2("name")
DbCon.close
set DbCon=nothing
|