SQL - LEFT
LEFT() Function दिए गए string के left से दिए गए length तक character(s) को return करता है |
Syntax for LEFT() String SQL Function
LEFT(str, length)
Parameter :
str : यहाँ पर string दिया जाता है |
length : यहाँ पर length दी जाती है |
LEFT() Function दिए जानेवाले length तक string के left से character(s) को लेकर substring को return किया जाता है |
Example for LEFT() String Function in SQL
Example पर string के पहले 3 characters को return किया गया है |
Source Code :Output :SELECT LEFT("HelloWorld",3);
+----------------------+ | LEFT("HelloWorld",3) | +----------------------+ | Hel | +----------------------+
Example for LEFT() String Function in SQL
Example पर Appliances table के Appliances इस column के values से पहले 3 characters को return किया गया है |
Source Code :Output :SELECT LEFT(Appliances,3) FROM Appliances;
+--------------------+ | LEFT(Appliances,3) | +--------------------+ | Was | | T.V | | Was | | Ref | | Coo | | A.C | | Iro | | Lap | +--------------------+