h1

meng Ignore Space di SQL Server 2008 R2.

May 5, 2011

Untuk meng ignore Spasi di SQL Server ada beberapa Cara.

1. LTRIM = Untuk meng-ignor spasi di Sebelah Kifi record.

Contoh : (Select LTRIM(a) from Table b) => “  test” hasil nya  “test”

2. RTRIM = Untuk Meng-Ignor Spasi di sebelah kanan record

Contoh : (Select RTRIM(a) from Table b) => ” test ” hasil nya  “test”

3. REPLACE(column,’ ‘,”) = Untuk meng meng-Ignor Semua Spasi di record.

Contoh : (Select REPLACE(a,’ ‘,”) from Table b) => “  t e s t ” hasil nya  “test”

Advertisement

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 )

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

Follow

Get every new post delivered to your Inbox.