SELECT Ism, UCase(Ism) AS UCase_Ism
FROM Talabalar
LEFT() funksiyasi yordamida matndagi dastlabki uchta belgini qirqib olish:
SELECT Ism,LEFT(Ism, 3) AS LEFT_Ism
FROM Talabalar
MID() funksiyasi sintaksisi:
MID(maydon_nomi, boshlanuvchi_belgi_orni, olinadigan_belgilar_soni)
SELECT Ism,MID(Ism, 3, 3) AS MiD_Ism
FROM Talabalar
LEN funksiyasi yordamida POYTAXTI maydonidagi yozuvlar uzunliklarini aniqlash
SELECT Ism,LEN(Ism) AS LEN_Ism
FROM Talabalar
Natijaga etibor bersak hech qanday ozgarish bolmadi.
SELECT Ism,LEN(Ism) AS LEN_Ism, LTrim (Ism) AS LTrim_Ism, LEN (LTrim_Ism) AS LEN_LTrim
FROM Talabalar
Do'stlaringiz bilan baham: |