Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I create a MySQL table that contains various collations? 1

Status
Not open for further replies.

lupidol

Programmer
Apr 23, 2008
125
IL
Hi everyone,
This is a code to create a MySQL table:
Code:
$dbcon = @mysqli_connect (DB_HOST, DB_USER, DB_PASSWORD, DB_NAME) ;
$q = 
"CREATE TABLE list 
(
fname VARCHAR(30) NOT NULL,
email VARCHAR(60) NOT NULL,
PRIMARY KEY (fname)
)";
$result = @mysqli_query ($dbcon, $q);
The above table doesn't suit my needs because my "fname" input is of non latin characters ! I get
"fname" values such as '????'.
I read about "utf8_general_ci" but this addresses to the whole table and i need only one field of that collation
to be "utf8_general_ci" .
Can someone please write here a code that creates a "multi collations" table?
Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top