SQL LIKE විධානය සමග බාවිතා කරන සංකේත කිහිපයක් මේ නමින් හැදින් වේ.
%
|
_
|
[]
|
^
|
-
|
Example-
SELECT * FROM Customers
WHERE City LIKE 'ber%';
WHERE City LIKE 'ber%';
SELECT * FROM Customers
WHERE City LIKE '%es%';
WHERE City LIKE '%es%';
SELECT * FROM Customers
WHERE City LIKE '_ondon';
WHERE City LIKE '_ondon';
SELECT * FROM Customers
WHERE City LIKE 'L_n_on';
WHERE City LIKE 'L_n_on';
SELECT * FROM Customers
WHERE City LIKE '[bsp]%';
WHERE City LIKE '[bsp]%';
SELECT * FROM Customers
WHERE City LIKE '[a-c]%';
WHERE City LIKE '[a-c]%';
SELECT * FROM Customers
WHERE City LIKE '[!bsp]%';
WHERE City LIKE '[!bsp]%';
SELECT * FROM Customers
WHERE City NOT LIKE '[bsp]%';
WHERE City NOT LIKE '[bsp]%';
No comments:
Post a Comment
Thank You..