Search
 
SCRIPT & CODE EXAMPLE
 

SQL

how to drop function in sql

DROP FUNCTION IF EXISTS sales.udf_get_discount_amount;
Comment

drop function in sql

/*-----------Delete Funcition---------*/
DROP FUNCTION sales.udf_get_discount_amount;
Comment

delete and drop in sql

DELETE -
-DML COMMAND
-Delete Rows from the table one by one
-We can use where clause with Delete to delete single row
-Delete is slower than truncate
-ROLLBACK is possible with DELETE

DROP-
-DDL COMMAND
-Delete the entire structure or schema
-We can't use where clause with drop
-Drop is slower than DELETE & TRUNCATE
-ROLLBACK IS NOT POSSIBLE WITH DROP

TRUNCATE-
-DDL COMMAND
-Truncate deletes rows at a one goal
-We can't use where clause with Truncate
-Truncate faster than both DELETE & DROP
-Rollback is not possible with Truncate
Comment

PREVIOUS NEXT
Code Example
Sql :: current timestamp in milliseconds mysql 
Sql :: sql all columns 
Sql :: sql server alter table add column tinyint 
Sql :: mysql update from select on same table 
Sql :: mysql two column combination unique 
Sql :: SQL NOT BETWEEN Operator 
Sql :: rename table sql server 
Sql :: oracle to_char number format percentage 
Sql :: get records in sql according to month name and count 
Sql :: get data every 30 days in sql 
Sql :: getdate function in postgresql 
Sql :: mysql récupérer le code création de vue 
Sql :: mysql money value 
Sql :: brew start postgres 
Sql :: download sql server 2016 
Sql :: stored procedure to delete data from table in mysql 
Sql :: how to access to mysql without root 
Sql :: psql load dump 
Sql :: create table in mysql mariadb primary key foreign key 
Sql :: sql select where in 
Sql :: reindexing all tables sql server 
Sql :: grant all privileges microsoft sql 
Sql :: sql formats 
Sql :: python dictionary to sql update 
Sql :: q operator in sql 
Sql :: sql time format 
Sql :: subquery in sql 
Sql :: INITCAP in Oracle example 
Sql :: creating table in mysql 
Sql :: plpgsql if statement 
ADD CONTENT
Topic
Content
Source link
Name
3+2 =