Posts: 2,536
Location: Western Maryland
|
Quote:
|
Originally Posted by starsunited
so if its numbers?
this sql query is logical?
select length(to_char(postal)) from table;
|
I just don't understand what you are trying to say here. Try to expand your descriptions more and use a more complete description.
As for this query, you will end up with all the rows returned from the table because you have no WHERE clause. The values returned will only be a function of the data in the postal column rather than the data itself.
So say your single-column table looks like this:
postal
-------
21817
21878
CD4EJC
3892999
The values returned from the query you suggest will probably look something like this:
-------
5
5
6
7
__________________
—Kyrnt
|