Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Neither CONCAT nor || are working for concatenating #140

Open
whalekeykeeper opened this issue Jun 18, 2023 · 0 comments
Open

Neither CONCAT nor || are working for concatenating #140

whalekeykeeper opened this issue Jun 18, 2023 · 0 comments

Comments

@whalekeykeeper
Copy link

My goal is to concatenate two strings, such as first_name and family_name.
I tried with:select concat(first_name, ' ', family_name) as name from survey, the result is no such function: CONCAT.
Then I tried to use || as: select first_name || ' ' || family_name as name from survey, I got zsh: permission denied.
I considered the case that it might be the textql command I used was wrong. I used:

textql -output-header -output-file csv/data/survey_fullname.csv -header -sql
"select CONCAT(first_name, ' ', family_name) as name from survey"
csv/data/survey.csv

I also tried the version to have ; at the end of the SQL statements.
But if I replaced the content of the sql statement, everything goes well.
I wonder if textql support concatenation of strings?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant