Create a php sql table

Above all, you should know that the Structured Query Language or SQL is a query language that allows you to make queries or queries on a database management system or SGBD. A database table has a unique name and is generally composed by columns and rows. If you are a custom php application development user, here's how to create a table in SQL with PHP.

The table liste_owner

Let us first create the table is liste_owner table_liste_owner.sql.

CREATE TABLE liste_owner (
number INT (5) NOT NULL,
name varchar (20) NOT NULL,
phone varchar (14) NOT NULL
) TYPE = MyISAM; .

Here we then create a liste_owner table that contains three attributes including the number which will correspond to an integer (INT) 5 digits, a name that corresponds to a esuite character (VARCHAR) of 20 characters and phone that will match a character string (VARCHAR) of 14 characters.

VARCHAR is used here to strings that can contain both text and numbers. For any attribute can not be empty, we have NOT NULL for all. The type MyISAM, meanwhile, has the role to clarify that we are here dealing with a MySQL database.

The table liste_disque

The table_liste_disque.sql will be composed by

CREATE TABLE liste_disque (
number INT (5) NOT NULL,
author varchar (50) NOT NULL,
title varchar (50) NOT NULL,
) TYPE = MyISAM.

The attributes are almost identical as that of the first table. However we have been able to use the extra AUTO_INCREMENT number for attributes in the first table. This will then prevent us each time specify the new owner of the number. This extra will thus enable us to automatically increment each time you insert a new owner.

The table liste_owner will be defined as follows:

CREATE TABLE liste_owner (
number INT (5) NOT NULL AUTO_INCREMENT,
name varchar (20) NOT NULL,
VARCHART phone (14) NOT NULL,
PRIMARY KEY (number)
) TYPE = MyISAM;

Here PRIMARY KEY (number) will indicate the number attribute. It is then possible for us to identify all tuples of the table from him.

The creation of this table is from PHPMyAdmin. However, it is also possible to do it directly from a php page but this is not ideal for beginners.

7,000-Euro Kadena Mining Machine: Goldshell KD-BOX

Goldshell KD-BOX is the most efficient mining machine for Kadena that you can buy right now. It has a price tag of 7,000 euros, but it is well worth the investment! This machine will help you generate more revenue from your mining operations and increase your profits! Goldshell KD-BOX is the most efficient mining machine for Kadena that you can buy right now. It has a price tag of, but it is well worth the investment! The Goldshell KD BOX price is going to come down to only 7000 euros with [...]

This Country Has the Largest Number of Professional PHP Developers

The country with the most php website developers is Switzerland, according to a study by W3Techs. This might be because php is one of the most popular programming languages in Europe and it's also used extensively for many websites around the world. The second highest number of php website developers was Denmark, followed by Russia and Canada. This website is one of the most popular php platforms in the world with over 100,000 websites using this open-source php framework. [...]

6 Things Entrepreneurs Should Know About Team Extension

team extension is a team-building strategy that involves the integration of external team members to support and supplement an already existing team. When done correctly, team extension can be one of the best ways for entrepreneurs to increase their productivity and create a more effective team. In this article, we will discuss six things that you should know about team extension before deciding whether or not it's right for your business. How do entrepreneurs manage team [...]

Last publications weblike-productions.com.