Jump to content

please help with the "subquery returns more than 1 row" error


giusseppe

Recommended Posts

hello i have a mysql database that i made from some oracle scripts, any way the tables are created with no problems also the views and the triggers, but i try to insert in one table some values and i get the error "subquery returns more than 1 row"

the table definition is:

CREATE TABLE ACCIONES_GRUPOS (
ACCIONGRUPOID	INTEGER NOT NULL,
GRUPOID      	INTEGER NOT NULL,
ACCIONID     	INTEGER NULL
)ENGINE=INNODB;

and the insert is:

INSERT INTO `sac`.`acciones_grupos`(`acciongrupoid`, `grupoid`, `accionid`)
VALUES (1, 0, 0),
  (2, 0, 1),
  (3, 0, 2),
  (4, 0, 3),
  (5, 0, 4),
  (6, 0, 5),
  (7, 1, 10),
  (8, 1, 11),
  (9, 1, 12),
  (10, 1, 13),
  (11, 1, 14),
  (12, 1, 15),
  (13, 1, 16),
  (14, 2, 20),
  (15, 2, 21),
  (16, 2, 22),
  (17, 2, 23),
  (18, 2, 24),
  (19, 2, 25),
  (20, 3, 30),
  (21, 3, 31),
  (22, 3, 32),
  (23, 3, 33),
  (24, 3, 34),
  (25, 3, 35),
  (26, 3, 36),
  (27, 4, 40),
  (28, 4, 41),
  (29, 4, 42),
  (30, 4, 43),
  (31, 4, 44),
  (32, 4, 45),
  (33, 5, 50),
  (34, 5, 51),
  (35, 5, 52),
  (36, 5, 53),
  (37, 5, 54),
  (38, 5, 55),
  (39, 5, 56),
  (40, 6, 60),
  (41, 6, 61),
  (42, 6, 62),
  (43, 6, 63),
  (44, 6, 64),
  (45, 6, 65),
  (46, 7, 70),
  (47, 7, 71),
  (48, 7, 72),
  (49, 7, 73),
  (50, 7, 74),
  (51, 7, 75),
  (52, 8, 80),
  (53, 8, 81),
  (54, 8, 82),
  (55, 8, 83),
  (56, 8, 84),
  (57, 8, 85),
  (58, 9, 90);

thank you so much

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.