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

what is 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 :: how to do an average on a count sql 
Sql :: hour must be between 1 and 12 
Sql :: oracle uptime 
Sql :: date datatype in livesql 
Sql :: trunc sysdate in oracle 
Sql :: mysql regex phone number 
Sql :: Search In the Database using Text 
Sql :: how to get second highest salary in each department in sql 
Sql :: psql concat string and int 
Sql :: replace sql 
Sql :: mysql show column type 
Sql :: set a value by excuting stored procedure 
Sql :: export database with data sql server 
Sql :: sql alias 
Sql :: mysql even numbers 
Sql :: how to completely uninstall sql server 
Sql :: how to install sql server management studio in ubuntu 18.04 
Sql :: how to find columns with null values in sql 
Sql :: change column in mysql 
Sql :: inserted row count tsql 
Sql :: oracle no data found error code 
Sql :: sql full outer join 
Sql :: google sheets filter rows above current cell 
Sql :: wp_query raw sql 
Sql :: add role to group postgres 
Sql :: how to left join a sub query in postgresql 
Sql :: sql comment 
Sql :: mysql update sum same table 
Sql :: compare if is null sql 
Sql :: mysql split explode 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =