![]() |
| Database Basics |
- Database
- Tables
- Fields
- Rows
> Open PHPMyAdmin > SQL
CREATE DATABASE QWC
Write Query and click GO. Now QWC database has been created.
Query OK, 1 row affected (0.01 sec)Now You need to use this database. Use this SQL query.
USE QWC;
Write Query and click GO. Now you are using QWC database.
Database changedNow you need to create tables. For tables, you need to write query as
CREATE TABLE inform(
name varchar( 30 ) ,
age int( 2 ) ,
phone int( 15 ) ,
address varchar( 50 )
)
It is like
Create Table [Table Name]( [Field Name] [Field Type] ([Field Limit]) , [-> Next Field] );Write Query and click GO.
Query OK, 0 rows affected (0.01 sec)Now You need to insert value. 1st you need to check that your table is selected. For value, you need to use this query as.
INSERT INTO `inform`(`name`, `age`, `phone`, `address`)
VALUES ('QWC',22,03234209211,'Pakistan')
It is like
But here you need to remind that you need to write CHR, Text type values within single or double quotes.Insert into table (colum1, colum2, colum3) values (value1, valu2, value3, value4);

Post a Comment
Give your reviews about this blog. Leave your comments. What do you think about this post?
Comments Guidelines:
1) I love to read comments, but please avoid spam.
2) Like this blog, share your insights, and spread the word.
3) You can use basic HTML/xHTML tags.
4) All comments are DoFollow—please use the section professionally.
5) Kindly mention your name or brand below your comment.
6) Constructive suggestions for improvement are always welcome.
Thanks for visiting Samee Articles.
========================================
Best Regards,
Samee U. Feroz