indongsaeng

SQL commands

Oct 20th, 2013
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.82 KB | None | 0 0
  1. SQL commands (USEFUL FOR PROGRAMMERS)
  2.  
  3. ABORT -- abort the current transaction
  4. ALTER DATABASE -- change a database
  5. ALTER GROUP -- add users to a group or remove users from a group
  6. ALTER TABLE -- change the definition of a table
  7. ALTER TRIGGER -- change the definition of a trigger
  8. ALTER USER -- change a database user account
  9. ANALYZE -- collect statistics about a database
  10. BEGIN -- start a transaction block
  11. CHECKPOINT -- force a transaction log checkpoint
  12. CLOSE -- close a cursor
  13. CLUSTER -- cluster a table according to an index
  14. COMMENT -- define or change the comment of an object
  15. COMMIT -- commit the current transaction
  16. COPY -- copy data between files and tables
  17. CREATE AGGREGATE -- define a new aggregate function
  18. CREATE CAST -- define a user-defined cast
  19. CREATE CONSTRAINT TRIGGER -- define a new constraint trigger
  20. CREATE CONVERSION -- define a user-defined conversion
  21. CREATE DATABASE -- create a new database
  22. CREATE DOMAIN -- define a new domain
  23. CREATE FUNCTION -- define a new function
  24. CREATE GROUP -- define a new user group
  25. CREATE INDEX -- define a new index
  26. CREATE LANGUAGE -- define a new procedural language
  27. CREATE OPERATOR -- define a new operator
  28. CREATE OPERATOR CLASS -- define a new operator class for indexes
  29. CREATE RULE -- define a new rewrite rule
  30. CREATE SCHEMA -- define a new schema
  31. CREATE SEQUENCE -- define a new sequence generator
  32. CREATE TABLE -- define a new table
  33. CREATE TABLE AS -- create a new table from the results of a query
  34. CREATE TRIGGER -- define a new trigger
  35. CREATE TYPE -- define a new data type
  36. CREATE USER -- define a new database user account
  37. CREATE VIEW -- define a new view
  38. DEALLOCATE -- remove a prepared query
  39. DECLARE -- define a cursor
  40. DELETE -- delete rows of a table
  41. DROP AGGREGATE -- remove a user-defined aggregate function
  42. DROP CAST -- remove a user-defined cast
  43. DROP CONVERSION -- remove a user-defined conversion
  44. DROP DATABASE -- remove a database
  45. DROP DOMAIN -- remove a user-defined domain
  46. DROP FUNCTION -- remove a user-defined function
  47. DROP GROUP -- remove a user group
  48. DROP INDEX -- remove an index
  49. DROP LANGUAGE -- remove a user-defined procedural language
  50. DROP OPERATOR -- remove a user-defined operator
  51. DROP OPERATOR CLASS -- remove a user-defined operator class
  52. DROP RULE -- remove a rewrite rule
  53. DROP SCHEMA -- remove a schema
  54. DROP SEQUENCE -- remove a sequence
  55. DROP TABLE -- remove a table
  56. DROP TRIGGER -- remove a trigger
  57. DROP TYPE -- remove a user-defined data type
  58. DROP USER -- remove a database user account
  59. DROP VIEW -- remove a view
  60. END -- commit the current transaction
  61. EXECUTE -- execute a prepared query
  62. EXPLAIN -- show the execution plan of a statement
  63. FETCH -- retrieve rows from a table using a cursor
  64. GRANT -- define access privileges
  65. INSERT -- create new rows in a table
  66. LISTEN -- listen for a notification
  67. LOAD -- load or reload a shared library file
  68. LOCK -- explicitly lock a table
  69. MOVE -- position a cursor on a specified row of a table
  70. NOTIFY -- generate a notification
  71. PREPARE -- create a prepared query
  72. REINDEX -- rebuild corrupted indexes
  73. RESET -- restore the value of a run-time parameter to a default value
  74. REVOKE -- remove access privileges
  75. ROLLBACK -- abort the current transaction
  76. SELECT -- retrieve rows from a table or view
  77. SELECT INTO -- create a new table from the results of a query
  78. SET -- change a run-time parameter
  79. SET CONSTRAINTS -- set the constraint mode of the current transaction
  80. SET SESSION AUTHORIZATION -- set the session user identifier and the current user identifier of the current session
  81. SET TRANSACTION -- set the characteristicsof the current transaction
  82. SHOW -- show the value of a run-time parameter
  83. START TRANSACTION -- start a transaction block
  84. TRUNCATE -- empty a table
  85. UNLISTEN -- stop listening for a notification
  86. UPDATE -- update rows of a table
  87. VACUUM -- garbage-collectand optionally analyze a database
Add Comment
Please, Sign In to add comment