ALGORITM_LAR Telegram 104
#SQL #LPAD #RPAD

Ustunni uzunligining bo'sh joylarini to'ldirishda biz LPAD() funksiyasidan yoki RPAD() funksiyasidan foydalanamiz.

Keling, qanday qilishni ko'rib chiqaylik

LPAD() funktsiyasi satrni chap tomondan berilgan belgilar bilan belgilangan uzunlikka joylashtiradi.

RPAD() funktsiyasi satrni o'ng tomondan berilgan belgilar bilan belgilangan uzunlikka joylashtiradi.

Sintaksisi
:
LPAD( string, length, pad_string )
RPAD( string, length, pad_string )


string - qiymatlari to'ldirilishi kerak bo'lgan matn (bu joyda ustun, raqam, sana va boshqa qiymatlar bo'lishi mumkin).

length - to'ldirilgandan keyingi ustun qiymatining umumiy uzunligi.

pad_string - qo'shilishi kerak bo'lgan satr.

MISOLLAR:

SELECT LPAD('YANGI',6,'#'); 
natija: "###YANGI"

SELECT LPAD(' algoritm',15,'Yaxshi');
natija: "Yaxshi algoritm"

SELECT LPAD(8,5,9);
natija: "99998"


@algoritm_lar



tgoop.com/algoritm_lar/104
Create:
Last Update:

#SQL #LPAD #RPAD

Ustunni uzunligining bo'sh joylarini to'ldirishda biz LPAD() funksiyasidan yoki RPAD() funksiyasidan foydalanamiz.

Keling, qanday qilishni ko'rib chiqaylik

LPAD() funktsiyasi satrni chap tomondan berilgan belgilar bilan belgilangan uzunlikka joylashtiradi.

RPAD() funktsiyasi satrni o'ng tomondan berilgan belgilar bilan belgilangan uzunlikka joylashtiradi.

Sintaksisi
:
LPAD( string, length, pad_string )
RPAD( string, length, pad_string )


string - qiymatlari to'ldirilishi kerak bo'lgan matn (bu joyda ustun, raqam, sana va boshqa qiymatlar bo'lishi mumkin).

length - to'ldirilgandan keyingi ustun qiymatining umumiy uzunligi.

pad_string - qo'shilishi kerak bo'lgan satr.

MISOLLAR:

SELECT LPAD('YANGI',6,'#'); 
natija: "###YANGI"

SELECT LPAD(' algoritm',15,'Yaxshi');
natija: "Yaxshi algoritm"

SELECT LPAD(8,5,9);
natija: "99998"


@algoritm_lar

BY Malumotlar tuzilmasi va algoritmlar





Share with your friend now:
tgoop.com/algoritm_lar/104

View MORE
Open in Telegram


Telegram News

Date: |

How to Create a Private or Public Channel on Telegram? Your posting frequency depends on the topic of your channel. If you have a news channel, it’s OK to publish new content every day (or even every hour). For other industries, stick with 2-3 large posts a week. Telegram has announced a number of measures aiming to tackle the spread of disinformation through its platform in Brazil. These features are part of an agreement between the platform and the country's authorities ahead of the elections in October. The group also hosted discussions on committing arson, Judge Hui said, including setting roadblocks on fire, hurling petrol bombs at police stations and teaching people to make such weapons. The conversation linked to arson went on for two to three months, Hui said. Telegram offers a powerful toolset that allows businesses to create and manage channels, groups, and bots to broadcast messages, engage in conversations, and offer reliable customer support via bots.
from us


Telegram Malumotlar tuzilmasi va algoritmlar
FROM American