SQL语句报价

时间:2016-10-24 21:51:26

标签: sql asp.net

我的SQL语句报价需要帮助,有人可以帮助我吗?

所有变量都是整数

首先是:

var sqlSearch = "SELECT * FROM Profiles WHERE BodyType=" "+bodyType+ " OR   Education=" "+education+" OR Eyes =" "+eyes+" OR Hairs=" "+hairs+ " OR Heights    =" "+heights+" OR Religion =" +"religion+"";

第二个是:

sql = "INSERT INTO Profiles (MemberID, Description, Religion, HairColor, Eye, Education, Height, BodyType) VALUES ("+Session("MemberID")+", "+description+", "+religion+", "+hairs+", "+eyes+", "+education+", "+heights+", "+bodyType+")";

1 个答案:

答案 0 :(得分:0)

<div class="coverImage" style="background-image:url('3.2.5\\assets\\img\\backgroundCanvas1.jpg');"></div>