I'm working on a database, but when I use the statement
Insert into Personaggio (Nome, Storia, Personalità, StatisticheATK,StatisticheDEF, Salute,Denaro,NomeNEmico, NomeOggetto, NomeArma,NomeChip) values ("A2","A2 è un androide creato con lo scopo di attaccare le linee nemiche delle biomacchine.Tuttavia, essa si ribella alla YoHRa dopo alcuni fatti, e vive come una disertrice. ","All'inizio è taciturna e misteriosa, ma durante la storia si scopre essere abbastanza aggressiva e fumantina. Nutre profondo astio verso le biomacchine, tuttavia nel corso della storia si ricrederà . ",1200,500,2000,30000,NULL,NULL,NULL,NULL);
The log console gives me the error 1242: Subquery returns more than 1 row. It's clearly not a subquery, so what I am supposed to do? The triggers on the tables are 4, 2 on before insert and 2 on before update and they are basically the same, here's an example:
CREATE DEFINER = CURRENT_USER TRIGGER
NierAutomata
.Personaggio_BEFORE_INSERT_1
BEFORE INSERT ONPersonaggio
FOR EACH ROW BEGIN declare msg VARCHAR(150); if (999999 < (select Personaggio.Salute from Personaggio)) then set msg=concat('La salute massima non può superare il valore di 999.999'); signal sqlstate '45000' set message_text=msg; end if; ENDI've already inserted 2 records on this table, but only this one is giving me trouble. My version is 8.0.23 build 365764. Any help?
I've already inserted 2 records on this table, but only this one is giving me trouble. My version is 8.0.23 build 365764.