MySql Case Sensitive

Untuk mengatur Case Sensitive dan non Case Sensitive pada MySql  dapat dilakukan dengan mengeset Charset dan Collatenya.

Contoh:

CREATE DATABASE test_case
DEFAULT CHARACTER SET latin1 COLLATE latin1_bin;

CREATE TABLE case_test (
test1 varchar(10) collate latin1_bin default NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_bin ;

Terima Kasih.

2 Responses to “MySql Case Sensitive”

  1. makan-makan™

  2. ngeri amat isi blog nya……

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: