Skip to content
Advertisement

How to find rows in SQL DB with a definite word length?

Good day, I’ve got a column with text in my table, but i need to export words 17 letters long only in it.

I tried to use

but my query newer completes.

This is an example of text cell

REIGHT CAR DUMP T.M. “HOWO”, COMMERCIAL NAME A7, MODEL TOTAL 4 PIECES, WITHOUT PACKING IDENTIFICATION NUMBER ENGINE NUMBER 191007018177; TRANSMISSION NUMBER NO; NO BRIDGE NUMBERS 3) VIN: LZZ5DYSD5KA545780; CHASSIS NUMBER LZZ5DYSD5KA545780; ENGINE NUMBER 191007018247; TRANSMISSION NUMBER NO; NO BRIDGE NUMBERS 4) VIN: LZZ5DYSD2KA545784; CHASSIS NUMBER LZZ5DYSD2KA545784; ENGINE NUMBER 191007018137; TRANSMISSION NUMBER NO; BRIDGE ROOMS ARE NOT AVAILABLE FREIGHT VEHICLE –

I am using Microsoft SQL management studio

Advertisement

Answer

If you are using sql server

Edit: I have implemented it in sql server, convert it into ms sql 2012

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement