Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2019
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.94 KB | None | 0 0
  1. Microsoft Windows [Version 6.3.9600]
  2. (c) 2013 Microsoft Corporation. Wszelkie prawa zastrzeżone.
  3.  
  4. C:\Users\technikum>cd..
  5.  
  6. C:\Users>cd..
  7.  
  8. C:\>cd xampp
  9.  
  10. C:\xampp>cd mysql
  11.  
  12. C:\xampp\mysql>cd bin
  13.  
  14. C:\xampp\mysql\bin>mysql -u root -p
  15. Enter password:
  16. Welcome to the MariaDB monitor. Commands end with ; or \g.
  17. Your MariaDB connection id is 117
  18. Server version: 10.4.6-MariaDB mariadb.org binary distribution
  19.  
  20. Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
  21.  
  22. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
  23.  
  24. MariaDB [(none)]> create database baza2d2 default character set utf8 collate utf8_polish _ci;
  25. ERROR 1273 (HY000): Unknown collation: 'utf8_polish'
  26. MariaDB [(none)]> create database baza2d2 default character set utf8 collate utf8_polish _ci;
  27. ERROR 1273 (HY000): Unknown collation: 'utf8_polish'
  28. MariaDB [(none)]> create database baza2d2 default character set utf8 collate utf8_polish _ci;
  29. ERROR 1273 (HY000): Unknown collation: 'utf8_polish'
  30. MariaDB [(none)]> create database baza2d2 default character set utf8 collate utf8_polish_ci;
  31. Query OK, 1 row affected (0.012 sec)
  32.  
  33. MariaDB [(none)]> use baza2d2
  34. Database changed
  35. MariaDB [baza2d2]> create table
  36. -> ;
  37. ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
  38. MariaDB [baza2d2]> create table(auto_increment, PRIMARY KEY(id));
  39. ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '(auto_increment, PRIMARY KEY(id))' at line 1
  40. MariaDB [baza2d2]> create table handlowcy (auto_increment, PRIMARY KEY(id));
  41. ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ' PRIMARY KEY(id))' at line 1
  42. MariaDB [baza2d2]> create table handlowcy;
  43. ERROR 1113 (42000): A table must have at least 1 column
  44. MariaDB [baza2d2]> create table handlowcy(
  45. -> id handlowcy auto_increment
  46. -> nazwisko
  47. -> imie
  48. -> email
  49. -> login
  50. -> show table
  51. -> ;
  52. ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'handlowcy auto_increment
  53. nazwisko
  54. imie
  55. email
  56. login
  57. show table' at line 2
  58. MariaDB [baza2d2]> create table handlowcy(
  59. -> id handlowcy (VARCHAR 100)
  60. -> nazwikso (VARCHAR 100)
  61. -> imie (VARCHAR 100)
  62. -> email (VARCHAR 100)
  63. -> login(VARCHAR 100)
  64. -> auto_increment
  65. -> PRIMARY KEY (id));
  66. ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'handlowcy (VARCHAR 100)
  67. nazwikso (VARCHAR 100)
  68. imie (VARCHAR 100)
  69. email (VARCHAR' at line 2
  70. MariaDB [baza2d2]> create table handlowcy(
  71. -> idhandlowca int NOT NULL AUTO_INCREMENT,
  72. -> nazwikso varchar(255) NOT NULL,
  73. -> imie varchar(255),
  74. -> email varchr(255),
  75. -> login varchar(255),
  76. -> PRIMAY KEY(idhandlowca)
  77. -> );
  78. ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'varchr(255),
  79. login varchar(255),
  80. PRIMAY KEY(idhandlowca)
  81. )' at line 5
  82. MariaDB [baza2d2]> create table handlowcy (
  83. -> idhandlowca int NOT NULL AUTO_INCREMENT,
  84. -> nazwikso varchar(255) NOT NULL,
  85. -> imie varchar(255),
  86. -> email varchr(255),
  87. -> login varchar(255),
  88. -> PRIMAY KEY(idhandlowca)
  89. -> );
  90. ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'varchr(255),
  91. login varchar(255),
  92. PRIMAY KEY(idhandlowca)
  93. )' at line 5
  94. MariaDB [baza2d2]> CREATE TABLE Handlowcy (
  95. -> idhandlowca int NOT NULL AUTO_INCREMENT,
  96. -> nazwisko varchar(255) NOT NULL,
  97. -> imie varchar(255),
  98. -> email varchar(255),
  99. -> login varchar(255),
  100. -> PRIMARY KEY (idhandlowca)
  101. -> );
  102. Query OK, 0 rows affected (0.222 sec)
  103.  
  104. MariaDB [baza2d2]> create table Samochody(
  105. -> id samochodu int NOT NULL AUTO_INCREMENT,
  106. -> rocznik INT
  107. -> ;
  108. ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'samochodu int NOT NULL AUTO_INCREMENT,
  109. rocznik INT' at line 2
  110. MariaDB [baza2d2]> create table Samochody (
  111. -> idsamochodu int NOT NULL AUTO_INCREMENT,
  112. -> rocznik INT,
  113. -> wartosc INT,
  114. -> tablica varchar(255),
  115. -> przebieg INT,
  116. -> silinik varchar(255),
  117. -> idmodelu varchar(255),
  118. -> datawpisu INT,
  119. -> autorwpisu varchar(255),
  120. -> PRIMARY KEY(idsamochodu)
  121. -> );
  122. Query OK, 0 rows affected (0.288 sec)
  123.  
  124. MariaDB [baza2d2]> create table Modele (
  125. -> idmodelu int NOT NULL AUTO_INCREMENT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement