Search
 
SCRIPT & CODE EXAMPLE
 

SQL

how to delete the rows with null values in mysql

DELETE FROM user WHERE username IS NULL;

To Delete the Rows with the Null values if present in any specific Columns.
Comment

mysql on delete set null


    FOREIGN KEY (child_col1, child_col2, ... child_col_n)
    REFERENCES parent_table (parent_col1, parent_col2, ... parent_col_n)
    ON DELETE SET NULL
    [ ON UPDATE { NO ACTION | CASCADE | SET NULL | SET DEFAULT } ] 
Comment

PREVIOUS NEXT
Code Example
Sql :: mysql cast null to string 
Sql :: The local psql command could not be located 
Sql :: sql count null values in all columns 
Sql :: postgresql get date now 
Sql :: run postgresql dump to csv 
Sql :: SQL ORDER BY DESC (Descending Order) 
Sql :: SQL Multiple Cases 
Sql :: sql command to show all tables 
Sql :: postgresql function 
Sql :: csv into data postgres 
Sql :: mysql group by date 
Sql :: mysql permissions 
Sql :: creating a table sql 
Sql :: add multiple row table pl sql 
Sql :: how to check table name in current database sql 
Sql :: reset auto increment mysql 
Sql :: sql select rows with different values in one column 
Sql :: sql server create constraint 
Sql :: mysql count by month 
Sql :: select columns postgres 
Sql :: sqlite unique multiple columns 
Sql :: sqlserver add column 
Sql :: SQL Add Column in a Table 
Sql :: select random rows sql 
Sql :: sql in 
Sql :: alter table add foreign key mariadb example 
Sql :: sql update multiple rows 
Sql :: clear table sql 
Sql :: how to print sql query 
Sql :: sql server check whether column has same equal values 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =