Loading lesson path
Concept visual
Start at both ends
Extract characters from a string, starting at position 3:
SELECT Mid("SQL Tutorial", 3) AS ExtractString;The Mid() function extracts some characters from a string (starting at any position).
string, start, length )
Required. The string to extract from start Required. The start position length Optional. The number of characters to extract. If omitted, this function returns all characters from the start position
Extract characters from the text in a column (start at position 4, and extract 6 characters): SELECT Mid(CustomerName, 4, 6) AS ExtractString
FROM Customers;❮ MS Access Functions