BudiBambang,
Maybe you have solved already, but here is a thought.
I'm not sure in ASE but in ASA when you create the database file trought Sybase Central, there is an option to 'Ignored trailing blanks', and (I'm just guessing) there should be a way to change that option in a already create database. I've read about a traceflag (T4048) for ignore trailing blanks when selecting but, i'm not sure.
As for,
1) Select * from master where kode=xx
2) select * from master where trim(kode)=xx
Yes, you're right i think the second statement should take longer. If KODE have and index, when you use trim(kode) you're no longer using that index, bacause kode is different from trim(kode).
This is what i heard it happends, if there is a guru that can enlighten us here, we'll appreciated it.
Hope this helps,
David.