|
When you are declare DDL for an SQL defined table we use a lot ofstuff
like
this
NAME <> ' ';
You do this in DDL? Can you give an example DDL statement where you do
this? (Maybe CREATE VIEW?)
Anyway, you have it right. NAME <> ' ' will always and forever expand
the shorter field with blanks until the lengths match, and will then
compare. One blank is and has always been equal to n blanks in SQL
unless something's broken.
create table ab (nam char(150))
Table AB in DLOVELADY1 created but could not be journaled.
insert into ab values(' THOMAS ')
1 rows inserted in AB in DLOVELADY1.
insert into ab values(' ')
1 rows inserted in AB in DLOVELADY1.
select count(*) from ab where nam <> ' '
COUNT ( * )
1
SELECT statement run complete.
select count(*) from ab where nam = ' '
COUNT ( * )
1
SELECT statement run complete.
Can you provide more detail on how this failed for you, please?
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.