ÔÚPHPÖÐÈ«Ãæ×èÖ¹SQL×¢Èëʽ¹¥»÷Ö®Ò»
Ò»¡¢ ÒýÑÔ
¡¡¡¡PHPÊÇÒ»ÖÖÁ¦Á¿Ç¿´óµ«Ï൱ÈÝÒ×ѧϰµÄ·þÎñÆ÷¶Ë½Å±¾ÓïÑÔ£¬¼´Ê¹ÊǾÑé²»¶àµÄ³ÌÐòÔ±Ò²Äܹ»Ê¹ÓÃËüÀ´´´½¨¸´ÔӵĶ¯Ì¬µÄwebÕ¾µã¡£È»¶ø£¬ËüÔÚʵÏÖÒòÌØÍø·þÎñµÄÃØÃܺͰ²È«·½ÃæÈ´³£³£´æÔÚÐí¶àÀ§ÄÑ¡£ÔÚ±¾ÏµÁÐÎÄÕÂÖУ¬ÎÒÃǽ«Ïò¶ÁÕß½éÉܽøÐÐweb¿ª·¢Ëù±ØÐèµÄ°²È«±³¾°ÒÔ¼°PHPÌض¨µÄ֪ʶºÍ´úÂë-Äã¿ÉÒÔ½èÒÔ±£»¤Äã×Ô¼ºµÄwebÓ¦ÓóÌÐòµÄ°²È«ÐÔºÍÒ»ÖÂÐÔ¡£Ê×ÏÈ£¬ÎÒÃǼòµ¥µØ»Ø¹ËһϷþÎñÆ÷°²È«ÎÊÌâ-չʾÄãÈçºÎ´æÈ¡Ò»¸ö¹²ÏíËÞÖ÷»·¾³ÏµÄ˽ÈËÐÅÏ¢£¬Ê¹¿ª·¢ÕßÍÑÀ뿪Éú²ú·þÎñÆ÷£¬Î¬³Ö×îеÄÈí¼þ£¬Ìṩ¼ÓÃܵÄƵµÀ£¬²¢ÇÒ¿ØÖƶÔÄãµÄϵͳµÄ´æÈ¡¡£
¡¡¡¡È»ºó£¬ÎÒÃÇÌÖÂÛPHP½Å±¾ÊµÏÖÖеÄÆÕ±é´æÔڵĴàÈõÐÔ¡£ÎÒÃǽ«½âÊÍÈçºÎ±£»¤ÄãµÄ½Å±¾ÃâÓÚSQL×¢È룬·ÀÖ¹¿çÕ¾µã½Å±¾»¯ºÍÔ¶³ÌÖ´ÐУ¬²¢ÇÒ×èÖ¹¶ÔÁÙʱÎļþ¼°»á»°µÄ"½Ù³Ö"¡£
¡¡¡¡ÔÚ×îºóһƪÖУ¬ÎÒÃǽ«ÊµÏÖÒ»¸ö°²È«µÄWebÓ¦ÓóÌÐò¡£Ä㽫ѧϰÈçºÎÑéÖ¤Óû§Éí·Ý£¬ÊÚȨ²¢¸ú×ÙÓ¦ÓóÌÐòʹÓ㬱ÜÃâÊý¾ÝËðʧ£¬°²È«µØÖ´Ðи߷çÏÕÐÔµÄϵͳÃüÁ²¢Äܹ»°²È«µØʹÓÃweb·þÎñ¡£ÎÞÂÛÄãÊÇ·ñÓÐ×ã¹»µÄPHP°²È«¿ª·¢¾Ñ飬±¾ÏµÁÐÎÄÕ¶¼»áÌṩ·á¸»µÄÐÅÏ¢À´°ïÖúÄã¹¹½¨¸üΪ°²È«µÄÔÚÏßÓ¦ÓóÌÐò¡£
¡¡¡¡¶þ¡¢ ʲôÊÇSQL×¢Èë
¡¡¡¡Èç¹ûÄã´òËãÓÀÔ¶²»Ê¹ÓÃijЩÊý¾ÝµÄ»°£¬ÄÇô°ÑËüÃÇ´æ´¢ÓÚÒ»¸öÊý¾Ý¿âÊǺÁÎÞÒâÒåµÄ£»ÒòΪÊý¾Ý¿âµÄÉè¼ÆÄ¿µÄÊÇΪÁË·½±ãµØ´æÈ¡ºÍ²Ù×÷Êý¾Ý¿âÖеÄÊý¾Ý¡£µ«ÊÇ£¬Èç¹ûÖ»ÊǼòµ¥µØÕâÑù×öÔòÓпÉÄܻᵼÖÂDZÔÚµÄÔÖÄÑ¡£ÕâÖÖÇé¿ö²¢²»Ö÷ÒªÊÇÒòΪÄã×Ô¼º¿ÉÄÜżȻɾ³ýÊý¾Ý¿âÖеÄÒ»ÇУ»¶øÊÇÒòΪ£¬µ±ÄãÊÔͼÍê³ÉijÏî"ÎÞ¹¼"µÄÈÎÎñʱ£¬ÄãÓпÉÄܱ»Ä³Ð©ÈËËù"½Ù³Ö"-ʹÓÃËû×Ô¼ºµÄÆÆ»µÐÔÊý¾ÝÀ´È¡´úÄã×Ô¼ºµÄÊý¾Ý¡£ÎÒÃdzÆÕâÖÖÈ¡´úΪ"×¢Èë"¡£
¡¡¡¡Æäʵ£¬Ã¿µ±ÄãÒªÇóÓû§ÊäÈë¹¹ÔìÒ»¸öÊý¾Ý¿â²éѯ£¬ÄãÊÇÔÚÔÊÐí¸ÃÓû§²ÎÓë¹¹½¨Ò»¸ö´æÈ¡Êý¾Ý¿â·þÎñÆ÷µÄÃüÁһλÓѺõÄÓû§¿ÉÄܶÔʵÏÖÕâÑùµÄ²Ù×÷¸Ð¾õºÜÂúÒ⣻Ȼ¶ø£¬Ò»Î»¶ñÒâµÄÓû§½«»áÊÔͼ·¢ÏÖÒ»ÖÖ·½·¨À´Å¤Çú¸ÃÃüÁ´Ó¶øµ¼Ö¸ñ»µÄŤÇúÃüÁîɾ³ýÊý¾Ý£¬ÉõÖÁ×ö³ö¸üΪΣÏÕµÄÊÂÇé¡£×÷Ϊһ¸ö³ÌÐòÔ±£¬ÄãµÄÈÎÎñÊÇÑ°ÕÒÒ»ÖÖ·½·¨À´±ÜÃâÕâÑùµÄ¶ñÒâ¹¥»÷¡£
¡¡¡¡Èý¡¢ SQL×¢È빤×÷ÔÀí
¡¡¡¡¹¹ÔìÒ»¸öÊý¾Ý¿â²éѯÊÇÒ»¸ö·Ç³£Ö±½ÓµÄ¹ý³Ì¡£µäÐ͵أ¬Ëü»á×ñÑÈçÏÂ˼·À´ÊµÏÖ¡£½öΪ˵Ã÷ÎÊÌ⣬ÎÒÃǽ«¼Ù¶¨ÄãÓÐÒ»¸öÆÏÌѾÆÊý¾Ý¿â±í¸ñ"wines"£¬ÆäÖÐÓÐÒ»¸ö×Ö¶ÎΪ"variety"£¨¼´ÆÏÌѾÆÀàÐÍ£©£º
¡¡¡¡1. Ìṩһ¸ö±íµ¥-ÔÊÐíÓû§ÌύijЩҪËÑË÷µÄÄÚÈÝ¡£ÈÃÎÒÃǼٶ¨Óû§Ñ¡ÔñËÑË÷ÀàÐÍΪ"lagrein"µÄÆÏÌѾơ£
¡¡¡¡2. ¼ìË÷¸ÃÓû§µÄËÑË÷ÊõÓ²¢ÇÒ±£´æËü-ͨ¹ý°ÑËü¸³¸øÒ»¸öÈçÏÂË
Ïà¹ØÎĵµ£º
//ÉÏ´«Îļþ
$dir="../upfile/jianli";
set_time_limit(0);
extract($_FILES);
if(!empty($res_clett["name"])){
$upfile=&$HTTP_POST_FILES['con_pdf'];
$upfileEx=substr($upfile['name'],-3);
$tmp_name=date("YmdGhis").'.'.$upfileEx;
&nb ......
HTML:
<META HTTP-EQUIV="pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
<META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT">
<META HTTP-EQUIV="expires" CONTENT="0">
PHP£º
header("Expires: Mon, 26 Jul 1997 ......
What is SQL*Plus and where does it come from?
SQL*Plus is a command line SQL and PL/SQL language interface and reporting tool that ships with the Oracle Database Client and Server software. It can be used interactively or driven from scripts. SQL*Plus is frequently used by DBAs and Developers ......
È«ÎÄËÑË÷µÄºËÐÄÒýÇ潨Á¢ÔÚMicrosoft Full-Text Engine for SQL Server (MSFTESQL) ·þÎñÌṩ֧³Ö
Ãæ¶Ôº£Á¿µÄÊý¾Ý£¬ÈçºÎ²ÅÄÜÕÒµ½ÎÒÐèÒªµÄ£¿¶ÔÊý°ÙÍòÐÐÎı¾Êý¾ÝÖ´ÐеÄLIKE ²éѯ¿ÉÄÜÐèÒª»¨·Ñ¼¸·ÖÖÓʱ¼ä²ÅÄÜ·µ»Ø½á¹û£»µ«¶ÔͬÑùµÄÊý¾Ý£¬È«ÎIJéѯֻÐèÒª¼¸Ãë»ò¸üÉÙ ......
Ò»¡¢ ×¢Èëʽ¹¥»÷µÄÀàÐÍ
¡¡¡¡¿ÉÄÜ´æÔÚÐí¶à²»Í¬ÀàÐ͵Ĺ¥»÷¶¯»ú£¬µ«ÊÇÕ§¿´ÉÏÈ¥£¬Ëƺõ´æÔÚ¸ü¶àµÄÀàÐÍ¡£ÕâÊǷdz£ÕæʵµÄ-Èç¹û¶ñÒâÓû§·¢ÏÖÁËÒ»¸öÄܹ»Ö´Ðжà¸ö²éѯµÄ°ì·¨µÄ»°¡£±¾ÎĺóÃ棬ÎÒÃÇ»á¶Ô´Ë×÷ÏêϸÌÖÂÛ¡£
¡¡¡¡Èç¹ûÄãµÄ½Å±¾ÕýÔÚÖ´ÐÐÒ»¸öSELECTÖ¸ÁÄÇô£¬¹¥»÷Õß¿ÉÒÔÇ¿ÆÈÏÔʾһ¸ö±í¸ñÖеÄÿһÐмǼ-ͨ¹ý°ÑÒ»¸öÀýÈç"1=1"Õâ ......