updating to database 1

updating to database

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 'create) VALUES ('Nguyễn Khang Hy', 'Diễn biến:\r\n- Cuối năm 938, đ...' at line 1

Here is what the above code is Doing:
1. We’re creating a new table called `posts` with the following columns:
– `id`: an integer that will be the primary key for the table.
– `title`: a string that will be the title of the post.
– `content`: a string that will be the content of the post.
– `created`: a datetime that will be the date and time the post was created.
2. We’re inserting a new row into the `posts` table with the following values:
– `title`: “Hello, World!”
– `content`: “This is my first post.”
– `created`: the current date and time.

Similar Posts