About 50 results
Open links in new tab
  1. MySQL :: Altering Table to Add column very slow

    Jul 3, 2009 · I have a huge table with over 20 million rows and one of the columns is a Text field. I need to add a column of type BIT data type having default value 0. This worked very fast on a small …

  2. MySQL :: Add column to large table (online DDL)

    Nov 16, 2016 · I am on mySQL version 5.6.29 and have read the documentation about online DDL in this version. I believe 'add column' will work in-place but will also perform a table copy. From …

  3. MySQL :: add column if not exists

    Jun 11, 2006 · However, this will fail if the column already exists AND stop further processing of the script. Is there something that can test for "column exists" in MySql (v. 4)?

  4. MySQL :: adding a column to a large table

    Sep 10, 2008 · I'm trying to add a column to a fairly large innodb table (14.6m rows) and the ALTER TABLE query has been running for over 27 hours. This is under MySQL 5.0.22 Is there a …

  5. MySQL :: add column fills with null

    Aug 3, 2011 · Any time I add a new column to the table the column is filled with null values equal to the last auto_increment id (in this case 1.6 million). Why is it doing this and is there a way to stop it?

  6. Re: Alter all tables in a Database - MySQL

    Jan 26, 2009 · Either use a TEE or SELECT INTO OUTFILE to build a .SQL command file.

  7. MySQL :: Re: add column to existing table of TIMESTAMP type with ...

    Feb 15, 2011 · From the reference - The DEFAULT value clause in a data type specification indicates a default value for a column. With one exception, the default value must be a constant; it cannot be a …

  8. MySQL :: alter table: add a column with AUTO INCREMENT

    Feb 14, 2007 · hello there, I try to alter following table: Create table user_seminar ( user_id Int NOT NULL, seminar_id Int NOT NULL, phase Tinyint default 0, zeit Datetime, status Tinyint DEFAULT 0 ) …

  9. MySQL :: Update each row in a table based on value in column on …

    Jan 11, 2005 · Hi, I'm going to add a new column to an existing table. That column will contain a value based on another column on the same row. What is the easiest, and most optimised, way to …

  10. MySQL :: use a variable in the ALTER TABLE ADD COLUMN statement

    Mar 10, 2006 · I need to add a column to a temp table, but the column name is stored in a variable. If I specify the variable, MySQL uses the actual variable name (v_colname) as the column name, versus …