Quantcast
Channel: Query – Technical Blog
Browsing all 8 articles
Browse latest View live

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 Article



Hibernate 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 Article

SQL 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 Article

change 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 Article

mysql 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 Article


Change 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 Article

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...

View Article

Hibernate 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

Browsing all 8 articles
Browse latest View live




Latest Images