0

i have a query to find table details in MySQL using criteria API in hibernate Spring, like below to get 'Auto_increment' from table.

SELECT
  Auto_increment
FROM information_schema.tables
WHERE table_name = 'the_table_you_want';
  1. My first question will be, is it possible to use criteria API to get information_schema details'?
  2. How to put it in criteria API to get required result ? Because i googled it on this topic i didn't find anywhere, where criteria is used to find schema details.
daisy
  • 357
  • 3
  • 7
  • 22

0 Answers0