This column needs to be changed to auto_increment. There is already data in the table.
I cannot change it to auto_increment without getting this error:
Error while executing query.
ALTER TABLE rec1.cd_artis MODIFY COLUMN ARTIST_NO INTEGER NOT NULL DEFAULT 0 AUTO_INCREMENT;
MySQL Error Number 1067
Invalid default value for 'ARTIST_NO'
Question #2:
What's wrong with this SQL statement?
insert into cd_artis(artist_no,artist) values (select max(artist_no)+1 from cd_artis,'FLAMING LIPS')