Konversi atau casting type data varchar ke integer di Postgre

Konversi atau casting type data varchar ke integer di Postgre:

CAST ( nama_field as integer)

contoh: CAST (nilai_uas as integer)

Begitu juga sebaliknya utk casting type data integer ke varchar:

CAST ( nama_field as varchar)

contoh: CAST (nilai_uas as varchar)

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 )

Google+ photo

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

Connecting to %s