Unsupported Screen Size: The viewport size is too small for the theme to render properly.

Insert New Column With Default Value

forums forums SQLyog Using SQLyog Insert New Column With Default Value

  • This topic is empty.
Viewing 1 reply thread
  • Author
    Posts
    • #13440
      paulmaherstarwars
      Participant

      I have inserted a new column with a default value into an existing table with about 5000 records but all the existing records still show a null value in the column and I want them to have the default value for the column, how to update all in the column from null to the default please?

    • #35544
      paulmaherstarwars
      Participant

      No worries I did it with simple query:

       

      Update Tablename set Columnname=’value’

Viewing 1 reply thread
  • You must be logged in to reply to this topic.