Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Wed, 14 Nov 2012 @ 11:53:07 GMT

  <Prev Next>   <<First <Prev Next> Last>>  

Subj:   Re: What is the use of LIKE operator for char fields
From:   sughesh iyyani

Hi Jeeva,

You have defined field as Char(20), so it will take 20 bytes.

But you have used only 5 byes out of that, remaining 15 will filled with spaces.

This is the reason 3rd query is not working and 4th query Trim is working fine.

Please use Varchar(20), you will get desired output without trim.


Sughesh I S.

  <Prev Next>   <<First <Prev Next> Last>>  
  Top Home Privacy Feedback  
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 28 Jun 2020