¹ØÓÚMySQLÊý¾Ý¿âµÄ²éѯÓï¾ä
Çë´óÏÀ°ïæ¿´¿´Õâ¾äÓдíÎóÂ𣿴úÂëÈçÏ£º
SQL code:
SELECT * from test where beginTime='2009-12-20 00:00:00' and endTime='2009-12-20 23:59:59'
ΪʲôÎÒÖ´ÐÐÁËÕâ¾ä£¬È´Ã»Óнá¹ûÄØ£¿
±íµÄ½á¹¹ÈçÏ£º
id number phone beginTime endtime
1 5 4342 2009-12-20 22:09:17 2009-12-20 22:09:23
2 23 4543 2009-12-20 22:09:28 2009-12-20 22:09:34
3 56 86675 2009-12-20 22:10:39 2009-12-20 22:11:52
ÄãµÄ±íÖÐÄÄÓÐÒ»Ìõ¼Ç¼µÄ beginTime='2009-12-20 00:00:00' °¡£¿
ÄãÏëʵÏÖʲô¹¦ÄÜ£¿
SQL code
Code highlighting produced by Actipro CodeHighlighter (freeware)
http
Ïà¹ØÎÊ´ð£º
ÎÒ¿ª·¢ASP.netʱ
²åÈëÍâÎÄÂÒÂë
SHOW VARIABLES LIKE 'character%';
Õâ¸öʱºò
character_set_client utf8
character_set_connection utf8
character_set_database utf8
ch ......
ÎÒµÄmysqlÔõôûÓа취дÈëÖÐÎÄÊý¾Ý£¿Ö»ÒªÊÇÊý¾ÝдÈëÊý¾Ý¿âʱ ¾Í»á±ä³ÉÈý¸öÎʺŠ£¿Çë½Ì¸ßÈË£¡£¡
linux? ÔõôдÈëµÄ
ÔÚmysqlÖÐÖ´ÐÐ show variables like 'character%'Ìù½á¹û³öÀ´¡£
ÔÚ°²×°MYSLQʱ½«Êý¾Ý¿âµÄ×Ö· ......
Çë¸ßÊÖÖ¸µã,ÎÒ¶ÔÒ»Õűí²éѯºóÔÙ¸üÐÂ,²éѯÊÇ×Ó²éѯ,±¨´í:
You can't specify target table 'a_table' for update in from clause
ÍêÕûSQLÓï¾äÊÇ
UPDATE a_table SET STATUS=0 WHERE ID=(SELECT MIN(ID) from a_tab ......
ÏÈÉÏ´íÎó
ÎÞ·¨Áª½ÓÊý¾Ý¿â
java.sql.SQLException: Before start of result set
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:910)
at com.mysql.jdbc.ResultSet.checkRowPos(ResultSet.java: ......
ÎÒÒѾ°´Õս̳ÌÉÏÅäÖÃtomcatµÄserver.xml
<Context path = "/POS" docBase = "POS" debug = "5" reloadable = "true" crossContext = "true" workDir = &quo ......