Mysql Database Backup & Restore
What is the quickest way to backup restore mysql database? First open command prompt(cmd) and get folder location from where we want to generate backup file or want to read file for restore. For Local...
View ArticleHibernate Custom Criterion : Check The Length of String Properties
We have seen Hibernate’s set of Restrictions and they cover a very large range of queries but not all. In Hibernate criterion we can not check String property length with existing functionality....
View ArticleSQL inside Hibernate Criteria
Earlier we have seen, how a custom criterion could be created to handle special scenarios. However this may seem overkill if the condition can be easily expressed using native SQL. For Criteria allows...
View Articlechange mysql auto increment value
To change increment value of any MYSQL table, first check the current Auto Increment value of the table with this, Then, change the Auto Increment value with below query,
View Articlemysql group_concat truncated result
Be aware if you are using group_concat() in MySQL query. With default settings it may truncate your result if it’s return long length string data. Yes if result of “group_concat()” contained MySQL...
View ArticleChange MySQL auto increment value
First Check what is current increment value : SELECT `AUTO_INCREMENT` FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'DatabaseName' AND TABLE_NAME = 'TableName'; Now, Set auto increment value:...
View ArticleMySQL database backup restore
What is the quickest way to backup & restore mysql database? First open command prompt(cmd) and get folder location from where we want to generate backup file or want to read file for restore. For...
View ArticleHibernate custom Criteria : check the length of string properties
There is no in-built function to fetch string properties length in hibernate criteria. However Hibernate also allows the creation of a custom Criterion that can be used in the criteria. Like, select *...
View Article