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

Support for ALTER TABLE MODIFY NOT NULL syntax

    XMLWordPrintable

Details

    Description

      Oracle supports a useful ALTER TABLE syntax that allows you to add / remove a NOT NULL constraint of a column wihile retaining the original datatype, i.e.

      CREATE TABLE orders(order_id INTEGER NOT NULL PRIMARY KEY, customer_id INTEGER);
      ALTER TABLE orders MODIFY customer_id NOT NULL;
      

      This is rather useful in some cases.

      Attachments

        Activity

          People

            Unassigned Unassigned
            karlsson Anders Karlsson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

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