SET Type : Set : Data Types MySQL TUTORIALS


MySQL TUTORIALS » Data Types » Set »

 

SET Type


The SET type stores a list of values.

A SET is a string object that can have zero or more values.

In a SET type, you can choose more than one option to store.

A SET type can contain up to 64 items.

Each of which must be chosen from a list of values.

Multiple set members are separated by commas (',').

SET member values should not contain commas.

mysql>
mysql>
mysql> CREATE Table Test(
    ->     Advertiser SET('A','B','C')
    -> );
Query OK, rows affected (0.03 sec)

mysql>
mysql>
mysql> INSERT INTO Test (Advertiservalues('A, B');
Query OK, row affected, warning (0.00 sec)

mysql>
mysql>
mysql> drop table Test;
Query OK, rows affected (0.02 sec)

mysql>



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

MySQL TUTORIALS

 Navioo Data Types
» Set