Skip to main content

Fungsi In dan Fungsi String

Fungsi In dan Fungsi String
1.    Fungsi In dan Not IN
    Fungsi In ====>  Menampilkan record yang didalam nya terdiri dari beberapa value
Sintax    : select * from nama table
     where field in
    ('value1','value2',.........,'valueN');
    Fungsi Not in ====> Menampilkan record yang bukan dinginkan/kecuali.
sintax    : select * from nama table
     where field not in
    ('value1','value2',.........,'valuen');
2.    Fungsi like dan not like
    Fungsi like ====> menampilkn record berdasarkan ketentuan
    adapun ketentuannya:
    '%string' ====> Menampilkan diakhir
    'string%' ====> Menampilkan diawal
    '%string%' ====> Menampilkan diakhir
Sintax    : select * from nama table
    where field like '%string';
    select * from nama table
    where field like 'string%';
    select * from nama table
    where field like '%string';
3.    Fungsi Uppercase dan Lowercase :
    Uppercase ====> Merubah String menjadi huruf besar
    Lowercase ====> Merubah String menjadi huruf kecil
Sintax     : select * from nama table
     where ucase(field) as field;
    select * from nama table
     where lcase(field) as field;
select kdbrg,namabrg,tipe_bayar,
ucase(namabrg) as HurufBesar from barang;


desc
select * from table order by field desc;

Comments

Popular posts from this blog

Sistem Informasi Pengiriman Kayu Menggunakan VB Net

Malam agan - agan semua.... sudah lama admin tidak posting, maklum lah lagi sibuk nyusun tugas akhir :D hari ini admin mau share gimana caraya membuat Sistem Informasi pengiriman Barang menggunakan VB Net, sebekumnya admin sudah posting membuat module koneksi di vb net 2008,  ini adalah lanjutan dari module sebelumnya, oh ia admin disini menggunakan database mysql. ok saat nya dimulai pertama rancang sebuah form seperti gambar dibawah ini : form diiatas terdiri dari : lima buah button tujuh buah textbox   satu buah listview  nama dari masing - masing komponen tersebut bisa anda sesuaikan dari koding dibawah ini : Imports MySql.Data.MySqlClient Public Class DataKayu     Sub Bersih()         BersihForm(Me)         Kunci(Me)         Simpan.ImageKey = "Simpan.Ico"         RubahTombol(0...

Disclaimer

Disclaimer for Daniel Fernando If you require any more information or have any questions about our site's disclaimer, please feel free to contact us by email at Danielbadung73@gmail.com Disclaimers for Daniel Fernando All the information on this website - www.nandoe73.blogspot.com - is published in good faith and for general information purpose only. Daniel Fernando does not make any warranties about the completeness, reliability and accuracy of this information. Any action you take upon the information you find on this website (Daniel Fernando), is strictly at your own risk. Daniel Fernando will not be liable for any losses and/or damages in connection with the use of our website. Our Disclaimer was generated with the help of the Disclaimer Generator and the Privacy Policy Generator . From our website, you can visit other websites by following hyperlinks to such external sites. While we strive to provide only quality links to useful and ethical websites, we have no contro...

BIlangan Ganjil Genap Di PHP

Selamat pagi semuanya hari ini saya mau sharing ini materi pelajaran ane sebenarnya waktu semester 4 tentang PHP , nah kebetulan ini salah tugas kuis kemaren gan. nah untuk pembelajaran saya akan membagikan Source Kode Nya Happy Coding <html> <head> <title>OUTPUT</title> </head> <body> <? $bilangan = $_POST['bilangan']; if($bilangan != ""){ if($bilangan%2 == 0){ echo "$bilangan adalah Bilangan Genap"; } else { echo "$bilangan adalah Bilangan Ganjil"; } } else{ echo "Inputkan Angka!"; } ?> </body> </html>