Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-7633

Delete .... not exists

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Blocker
    • Resolution: Not a Bug
    • 10.0.16-galera
    • N/A
    • None
    • debian 7

    Description

      create table `entreprise` (
      `ent_id` int not null AUTO_INCREMENT,
      PRIMARY KEY (`ent_id`)
      );
      create table `employee` (
      `emp_id` int not null AUTO_INCREMENT,
      `room_id` int,
      PRIMARY KEY (`emp_id`)
      );
      create table `room` (
      `room_id` int not null AUTO_INCREMENT,
      `ent_id` int not null,
      PRIMARY KEY (`room_id`)
      );

      delete from `employee` E
      where not exists(select 1
                                 from `entreprise` a
                                 join `rooms` r on   r.`ent_id` = a.`ent_id` and r.`room_id` = e.`room_id`);

      Error column e.room_id is unknown

      Attachments

        Activity

          People

            Unassigned Unassigned
            rvcat hervé
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.