3.3.2 Creating a Table

3.3.2 তালিকা এখন সৃষ্টি কৰা

In order to create a table, the CREATE TABLE command is used. In the CREATE TABLE command, each field of the table is defined with three attributes – name of the field, data type of the field and size of the field.

টেবল এখন সৃষ্টি কৰিবলৈ, ক্ৰিয়েট টেবল কমাণ্ড ব্যৱহাৰ কৰা হয়। ক্ৰিয়েট টেবল কমাণ্ডত, তালিকাৰ প্ৰতিটো ক্ষেত্ৰতিনিটা গুণৰ সৈতে সংজ্ঞায়িত কৰা হয় – ফিল্ডৰ নাম, ক্ষেত্ৰৰ ডাটা প্ৰকাৰ আৰু ফিল্ডৰ আকাৰ।

Each table field definition is separated by a comma. A MYSQL statement is terminated with a semicolon. The syntax of the CREATE TABLE command is:

প্ৰতিটো টেবুল ফিল্ড সংজ্ঞা কমা এটাৰ দ্বাৰা পৃথক কৰা হয়। এটা এমৱাইএছকিউএল বিবৃতি এটা ছেমিকলনৰ সৈতে সমাপ্ত কৰা হয়। ক্ৰিয়েট টেবল কমাণ্ডৰ বাক্যবিন্যাস হৈছে:

CREATE TABLE (IF NOT EXISTS] <table name>(<column_namel><data_type> [size] [PRIMARY KEY] [NOT NULL | NULL], <column_name2><data_type> [size] [PRIMARY KEY] [NOT NULL | NULL], _ _ _);

তালিকা (যদি অস্তিত্ববান নহয়] <তালিকানাম> ([আকাৰ] [প্ৰাথমিক কী] [নুল নহয় | নুল], [আকাৰ] [প্ৰাথমিক কী] [নুল | উল], _);

• The column_name specifies the name of the column. Each column_name has a tata type and a size. \

column_name স্তম্ভটোৰ নাম নিৰ্ধাৰণ কৰে। প্ৰতিটো column_name টাটা প্ৰকাৰ আৰু আকাৰ থাকে। •

• The NOT NULL or NULL indicates that the column accepts NULL values or not.

• নট নুল বা নুলে সূচায় যে স্তম্ভটোৱে নুল মান গ্ৰহণ কৰে নে নকৰে।

• The PRIMARY KEY indicates that the particular columns are set as the primary key.

প্ৰাথমিক কীয়ে সূচায় যে নিৰ্দিষ্ট স্তম্ভবোৰ প্ৰাথমিক কী হিচাপে ছেট কৰা হৈছে।