11. SQL Output III
The SQL statement below prints:
SELECT LPAD ('abcd',10,'wert') FROM DUAL;
Pick ONE option
wertweabcd
abcdwertwer
wertwertab
abwertwert

Respuesta :

Answer:

wertweabcd

Explanation:

The LPAD() function left-pads a string with another string, to a certain length.

LPAD(string, length, lpad_string)

Parameter Description

string: Required. The original string. If the length of the original string is larger than the length parameter, this function removes the overfloating characters from string

length: Required. The length of the string after it has been left-padded

lpad_string: Required. The string to left-pad to string.

In example;

SELECT LPAD("SQL Brainly", 20, "ABC");

Output : ABCABCABSQL Brainly

The LPAD() function is being used to pad the string of the left side with a predefined group of characteristics. This function is useful for formatting a query's output. The original string. The number shows the overall length of the string (in characters) returned after padding.

  • This method is used to pad/add the string to the left side of the original string value. Its actual string is to be padded.
  • If the length of the original string is greater than the lens parameter, this function eliminates the overflowing characters from the string.

Therefore, the final answer is "wertweabcd".

Learn more:

brainly.com/question/25823241

Ver imagen codiepienagoya
ACCESS MORE