Kyfx

Sql Knowledge For learners :)

Mar 19th, 2015
335
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.46 KB | None | 0 0
  1. Sql Knowledge For learners :)
  2. --------------------------------------------------------
  3. --->What Is Sql Injection
  4. ---------------------------------------------------------
  5. SQL injection is a technique where malicious users can inject SQL commands into an SQL statement, via web page input.
  6. Injected SQL commands can alter SQL statement and compromise the security of a web application.And Also Distroy your Database colonthree emoticon
  7. ---------------------------------------------------------
  8. --->What is Information_schema ?
  9. ---------------------------------------------------------
  10. INFORMATION_SCHEMA is the information database, the place that stores information about all the other databases that the MySQL server maintains. Inside INFORMATION_SCHEMA there are several read-only tables.
  11. Following is a list of each of the views that exist.
  12. INFORMATION_SCHEMA.CHECK_CONSTRAINTS
  13. INFORMATION_SCHEMA.COLUMN_DOMAIN_USAGE
  14. INFORMATION_SCHEMA.COLUMN_PRIVILEGES
  15. INFORMATION_SCHEMA.COLUMNS
  16. INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE
  17. INFORMATION_SCHEMA.CONSTRAINT_TABLE_USAGE
  18. INFORMATION_SCHEMA.DOMAIN_CONSTRAINTS
  19. INFORMATION_SCHEMA.DOMAINS
  20. INFORMATION_SCHEMA.KEY_COLUMN_USAGE
  21. INFORMATION_SCHEMA.PARAMETERS
  22. INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS
  23. INFORMATION_SCHEMA.ROUTINE_COLUMNS
  24. INFORMATION_SCHEMA.ROUTINES
  25. INFORMATION_SCHEMA.SCHEMATA
  26. INFORMATION_SCHEMA.TABLE_CONSTRAINTS
  27. INFORMATION_SCHEMA.TABLE_PRIVILEGES
  28. INFORMATION_SCHEMA.TABLES
  29. INFORMATION_SCHEMA.VIEW_COLUMN_USAGE
  30. INFORMATION_SCHEMA.VIEW_TABLE_USAGE
  31. INFORMATION_SCHEMA.VIEWS
  32. -------------------------------------------------------
  33. --->What Is Null Value ?
  34. ---------------------------------------------------------
  35. The SQL NULL is the term used to represent a missing value. A NULL value in a table is a value in a field that appears to be blank.
  36. A field with a NULL value is a field with no value. It is very important to understand that a NULL value is different than a zero value or a field that contains spaces.
  37. -------------------------------------------------------------
  38. Different Operator Use in Sql
  39. -------------------------------------------------------------
  40. --->ALL operator
  41. -------------------------------------------------------------
  42. The ALL operator is used to compare a value to all values in another value set.ALL is used to select all records of a SELECT STATEMENT
  43. Example:
  44. For example, ALL means greater than every value, means greater than the maximum value. Suppose ALL (1, 2, 3) means greater than 3
  45. ---------------------------------------------------------------
  46. ---->AND Operator
  47. ----------------------------------------------------------------
  48. The AND operator allows the existence of multiple conditions in an SQL statement's WHERE clause.In simple Words
  49. The AND operator displays a record if both the first condition AND the second condition are true.
  50. ---------------------------------------------------------------
  51. ---->OR Operator
  52. ---------------------------------------------------------------
  53. The OR operator is used to combine multiple conditions in an SQL statement's WHERE clause.In simple Words
  54. The OR operator displays a record if either the first condition OR the second condition is true.
  55. --------------------------------------------------------------
  56. ---->GROUP BY Statement
  57. -------------------------------------------------------------
  58. The GROUP BY Statement
  59. The GROUP BY statement is used in conjunction with the aggregate functions to group the result-set by one or more columns.
Add Comment
Please, Sign In to add comment