$sql = "SELECT * from `BadDut.user` WHERE `Account`='".strtolower($_POST["username"])."' ";
strtolowerÊÇphpµÄÒ»¸öº¯Êý£¬²»Çø·Ö´óСдµÄ¡£
Èç¹û°´ÕÕoracleµÄд·¨Ôõôд£¿Ð»Ð»£¡
--Ö±½ÓÓÃoracleÖеĺ¯Êý: upper ×Ö·û±ä´óд lower ×Ö·û±äСд Â¥Éϵģ¬Äܲ»ÄÜ°ÑsqlÓï¾äд³öÀ´£¿ SELECT * from BadDut.user WHERE upper(Account)=upper('input_value'); SELECT * from tatlbename WHERE Account=UPPER(variable)
¾ÍÊÇËüÁË! $sql = "SELECT * from `BadDut.user` WHERE `Account`='".strtolower($_POST["username"])."' "; ºóÃæµÄ×Ö·û´®×ª»»³ÉСд£¬ÄÇôǰÃæµÄaccount×Ö¶ÎÀïµÄÖµ¶¼ÊÇСдÐÎʽ£¿ ÄÇô select * from badDut.user where account=lower(:username) ¾ÍºÃÁË£¬Ã»±ØÒªµÄ»°£¬¾Í²»Òª¶Ôaccount½øÐк¯Êý´¦Àí ÏÖÔÚÎҸijÉÁË£º $sql = "