2
I have an sql:
Select a.nome
From tabela a
I want to return the name, but imagine my name field is size Varchar(100), but I want to return the first 50 characters.
Edit: It’s for IBM’s Informix
2
I have an sql:
Select a.nome
From tabela a
I want to return the name, but imagine my name field is size Varchar(100), but I want to return the first 50 characters.
Edit: It’s for IBM’s Informix
2
You can use the function SUBSTRING.
SELECT substring(a.nome from 1 for 50) FROM Tabela a
Browser other questions tagged sql informix
You are not signed in. Login or sign up in order to post.
Does not work for Informix
– LucasMotta
I did, but it’s another syntax, it changes the answer and I accept it:
SELECT substring(a.nome from 1 for 50) FROM Tabela a
– LucasMotta
So close. I didn’t even see the Tag Informix. Mals...
– Diego Souza