Search
 
SCRIPT & CODE EXAMPLE
 

SQL

alter table change default

ALTER TABLE foobar_data MODIFY COLUMN col VARCHAR(255) NOT NULL DEFAULT '{}';

A second possibility which does the same:
ALTER TABLE foobar_data CHANGE COLUMN col col VARCHAR(255) NOT NULL DEFAULT '{}';
Comment

PREVIOUS NEXT
Code Example
Sql :: apex add months to date 
Sql :: start mysql server using docker 
Sql :: mysql change data type of column 
Sql :: create temporary table in mysql 
Sql :: mysql search like order by best match 
Sql :: drop table in mysql 
Sql :: woocommerce mysql price table 
Sql :: FIND OUT THE NAME HIGHEST SALARY SQL 
Sql :: table drop if exist sql server 
Sql :: sql replace null with 0 
Sql :: mysql shell ERROR: Not connected. 
Sql :: add timestamp column to existing table ms sql server 
Sql :: postgres convert text to number 
Sql :: MySql get primary keys of table 
Sql :: backup ms sql database table data to file 
Sql :: how to rename column in sql 
Sql :: mysql public key retrieval is not allowed 
Sql :: is there any command to change postgres password 
Sql :: add auto increment column mysql 
Sql :: mysql create table like 
Sql :: get only first row mysql 
Sql :: SQL SERVER SELECT BETWEEN DATETIME 
Sql :: how to create table in sql 
Sql :: grant access on table in oracle 
Sql :: SQL: merging multiple row data in string 
Sql :: mysql workbench requires visual c++ 2019 redistributable package 
Sql :: drop unique key constraint in sql server 
Sql :: mysql check if not null 
Sql :: SQL Server Get the current identity value of the table 
Sql :: round one decimal place mysql 
ADD CONTENT
Topic
Content
Source link
Name
6+6 =