5
How do I extract all fields starting with '1. ' from the BD? In my instruction I used the LIKE but had no return, but to remove the point already returns something, but returns fields I do not want, example: 10.1; What’s wrong with it.
SELECT * FROM tbCelula WHERE C_Numeracao LIKE '1.%';
tbCelula C_id C_Numeracao 1 1.1 2 10.1 3 1.1.1 4 2.1
Return 1.1; 1.1.1
which bank you’re using?
– Marco Souza
I’m using the access.
– LogOff
Apparently your code this coreto, no sql server it makes right, your C_numbering is of what type ?
– Marco Souza
Is of the text type.
– LogOff
Make sure you’re getting that figure right.
– Edilson
Solution: SELECT * FROM tbCellular WHERE Mid(C_numbering, 1, 2) = '1. '; Thank you all for your help.
– LogOff
I will remove my answer, to clear the area.
– Edilson