wht is the difference between truncat,drop in sqlserver
wht is the difference between function and stored procedure
Answers were Sorted based on User's Feedback
Answer / chandra shekher
truncate command will remove the table and again recreate
the table.
drop command will remove the table permanently from the
database.
Function must return a value where as stored procedure may
or may not return a value.
Function can return only one value where as stored
procedure can return multiple values.
Function can be used in sql query where as stored procedure
cannot be used in sql query.
Function is used to compute a value where as stored
procedure can be used to perform a task
| Is This Answer Correct ? | 8 Yes | 0 No |
Answer / rakesh
The Main Difference Between DELETE & TRUNCATE Are :-
[1] DELETE - is a DML Command & TRUNCATE - is a DDL Command
[2] After DELETE - can rollback the Records & After TRUNATE
- cannot rollback the records
[3] In DELETE Command you can give the conditions in WHERE
Clause & In TRUNCATE you cannot give conditions
[4] After using DELETE Command The memory will be occupied
till the user does not give ROLLBACK or COMMIT & After using
TRUNCATE Command The memory realeased immediately
| Is This Answer Correct ? | 8 Yes | 2 No |
Answer / srilekha
TRUNCATE:it will delete all the records at a time but not a
stucture.
DROP:it will delete the table permanently from database;
PROCEDUE:it may be return value,it will not used in sql
queries
FUNCTION:it returns a value,it will used in sql queries
| Is This Answer Correct ? | 2 Yes | 1 No |
Enlist the characteristics of pl/sql?
Practice 1: Changes to data will only be allowed on tables during normal office hours of 8.45 in the morning until 5.30 in the afternoon, MONDAY through FRIDAY. A. Create a procedure called SECURE_DML that prevents the DML statement from executing outside of normal office hours, returning the message: “you may only make changes during normal office hours” b. Create a statement trigger on the PRODUCT table which calls the above procedure. c. Test it by inserting a new record in the PRODUCT table.
What are the features of pl sql?
How to return more than one value from a function?
How can I make sql query run faster?
Enlist some predefined exceptions?
Can a key be both primary and foreign?
How do I create an index in word?
why does the selected column have to be in the group by clause or part of an aggregate function? : Sql dba
How exception is different from error?
display null value rows with out using null function?
What is sql profiling in oracle?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)