In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Pay attention to mysql.jar package version conflicts if you use an application container. (for example, the weblogic container comes with mysql, but the version is relatively low. It is recommended to use the mysql.jar package under your own application)
To_date-> date_format
WM_CONCAT-> > GROUP_CONCAT
Select * from dual-> > select'* 'from dual or select 1 from dual
Rownum-> limit
Delete-should delete a from TEST_TABLE a where a.ID =''when using an alias
Table names need to be the same case by default on the linux server, so all uppercase ones conform to the specification.
ROWNUM needs custom authoring.
Modify dialect. There is no BigDecimal,Long,Text in mysql default dialect.
Null is not supported for CHAR type
Custom dialect is required for reference
Package com.yourcompany
Import java.sql.Types
Import org.hibernate.Hibernate
Import org.hibernate.dialect.MySQLDialect
Public class MyDialect extends MySQLDialect {
Public MyDialect () {
Super ()
RegisterHibernateType (Types.DECIMAL, Hibernate.BIG_DECIMAL.getName ())
RegisterHibernateType (Types.LONGVARCHAR, Hibernate.STRING.getName ())
RegisterHibernateType (Types.BINARY, Hibernate.STRING.getName ())
RegisterColumnType (Types.CHAR, 255, "char ($l)")
RegisterHibernateType (Types.CHAR, Hibernate.STRING.getName ();}
}
Connection pool setting: timeBetweenEvictionRunsMillis:60000, the value needs to be smaller, and the performance of mysql database may be poor.
Mysql needs to set wait_timeout, otherwise there are many sleep processes in mysql, which will end within 8 hours by default.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.