Why do I need to configure the SQL dialect of a data source?

前端 未结 11 2121
陌清茗
陌清茗 2020-11-27 13:17

When we configure a data source using Hibernate, we should add the hibernate.dialect property (or eclipselink.target-database if you are using Ecli

11条回答
  •  独厮守ぢ
    2020-11-27 14:08

    Databases implement subtle differences in the SQL they use. Things such as data types for example vary across databases (e.g. in Oracle You might put an integer value in a number field and in SQL Server use an int field). Or database specific functionality - selecting the top n rows is different depending on the database. The dialect abstracts this so you don't have to worry about it.

提交回复
热议问题