Yii Framework Forum: How get current AUTO_INCREMENT value for any table Ask - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How get current AUTO_INCREMENT value for any table Ask Rate Topic: -----

#1 User is offline   futur1st 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 08-January 18

Posted 23 March 2018 - 11:12 AM

Hi,
how do I get the current AUTO_INCREMENT value for a table in MySQL
0

#2 User is offline   itma 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 134
  • Joined: 16-September 13

Posted 23 March 2018 - 04:16 PM

Do you mean this?
select max(id) from table;
A full stack developer for hire (andrew@itma.pl)
https://twitter.com/Andrew_Bernat
1

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users