°ïæ¿´¿´ÕâÌõsqlÓï¾ä - .NET¼¼Êõ / ASP.NET
string selectSql = "select * from class_user_xpnews where spmc like '%" + this.txtSpName.Text.Trim() + "%' and sssq='" + businessSquareId + "' and zxqk='" + fitmentid + "'or key like '%"+"ÊÇ"+"%' ";
Ìáʾkey¹Ø¼ü×Ö¸½½üÓдíÎó¡£
string selectSql = "select * from class_user_xpnews where spmc like '%" + this.txtSpName.Text.Trim() + "%' and sssq='" + businessSquareId + "' and zxqk='" + fitmentid + "'or key like '%"+"ÊÇ"+"%' ";
Ìáʾkey¹Ø¼ü×Ö¸½½üÓдíÎó
Äã¸ø¶¨µÄÌõ¼þÂß¼ÓÐÎÊÌâ
¹ÛÍûÂ¥Ö÷µÄ½áÌùÂÊ
string selectSql = "select * from class_user_xpnews where spmc like '%" + this.txtSpName.Text.Trim() + "%' and sssq='" + businessSquareId + "' and zxqk='" + fitmentid + "'or [key] like '%"+"ÊÇ"+"%' ";
2 3 Â¥ ¶¼ÕýÈ·
ºÃÁË£¬Ð»Ð»kuroroloveÁË
ͬÒâ
KeyÊÇSQL ±£Áô¹Ø¼ü×Ö£¡
°ï¶¥£¡£¡£¡£¡£¡£¡£¡£¡£¡
[key]
key¶¼ÓÃÉÏÁË£¬Àúº¦
key ÊÇsql ±£Áô×Ö ÄãºóÃæÄǾä orÌõ¼þ¸ø¸öÀ¨ºÅ
Ïà¹ØÎÊ´ð£º
ÏÖÔÚÓÐÁ½ÕÅ±í£ºÎÄÕÂÖ÷±íA(articleId,articleTitle)£¬ÎÄÕÂÆÀÂÛ±íB(commentId,articleId,commentTitle)
ÏÖÔÚÎÒÏëʵÏÖÕâÑùµÄ¹¦ÄÜ£ºÁгöÎÄÕÂÁÐ±í£¬ÆäÖÐÿƪÎÄÕ±êÌâÏÂÃæÁгö´ËÎÄÕµÄÇ°2¸öÎÄÕÂÆÀÂÛ£¬ÇëÎÊsqlÓï¾äÔõôд°¡ ......
±¾È˹¤×÷¾ÑéÒ»ÄêÒÔÉÏ
ÊìϤasp.net
ÊìϤjavascript
ÊìϤCss
ÊìϤajax
ÊìϤsqlserver2005
ÓÐÒ»ÄêµÄÏîÄ¿¾Ñé
¾ßÌåÏîÄ¿ºÍÆäËûµÄ¾Í²»ÔÚÕâдÁË
ÓÐÒâÕßÁªÏµ£º
QQ:359233910
ÒýÓÃ
±¾È˹¤×÷¾ÑéÒ»ÄêÒÔÉÏ
ÊìϤasp ......
×Ö¶Î1,×Ö¶Î2.....×Ö¶ÎN,Status,ParentID
1,Name1....test1,1,99
1,Name1....test1,3,99
1,Name2....test2,1,101
1,Name2....test2,3,101
1,Name3....test3,2,101
1,Name1....test1,4,101
ÏëÒªµÄ½á¹ûÊÇ:
1,Na ......
½«Ò»¸ö²éѯÓï¾ä¸³¸øÒ»¸ö±äÁ¿£¬ÈçÏ£º
DECLARE @STR NVARCHAR(MAX)
SET @STR='SELECT * from SALE_PROD'
ÔõôÑù²ÅÄÜÖ´ÐÐËüÄØ£¿
Çë¸ßÊÖ£¬ÈÊÐÖ£¬ÏÀ½ã°ï°ïæ°¡
¶àл£¬¿ÉÒÔÀ²£¬¸ßÊÖ°¡
Ö±½ÓÖ´ÐоÍÐÐÁË
exec ......
Ôõô°ÑMDFÊý¾Ýתµ½MySQL£¿
ÖÁÉٵø½¼Óµ½sqlserverÉÏ
¾ßÌåÔõôŪ°¡ ÎҵıÏÒµÉè¼ÆµÄÊý¾Ý¿âÊÇ´ÓÍøÉÏdownÏÂÀ´µÄ£¿£¿
Ä㻹²»ÈçÖ±½ÓÓÃsqlserverÄØ
º¯Êý¡¢´æ´¢¹ý³Ì¶¼µÃ¸ÄÁË¡£
sqlserverûÔõôÓùý¡£Ò²Ã»Óа²× ......