Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • With your csvsql solution, I got: [root@server test]# csvsql -I --query 'select *,("Category ID" || " " || "Sub-Category") fieldname from input' category-subcat-test.csv >output.csv (sqlite3.OperationalError) no such table: input [SQL: select *,("Category ID" || " " || "Sub-Category") fieldname from input] (Background on this error at: sqlalche.me/e/e3q8) Commented Dec 21, 2019 at 11:41
  • Rename please category-subcat-test.csv in input.csv and test again. If it works, you must change the query because you must insert your file name in the query. The name of mine is input.csv Commented Dec 21, 2019 at 11:43
  • I had it as such: csvsql -I --query 'select *,("Category ID" || " " || "Sub-Category") fieldname from input' category-subcat-test.csv >output.csv Commented Dec 21, 2019 at 11:46
  • 2
    ok, you must change the command in csvsql -I --query 'select *,("Category ID" || " " || "Sub-Category") fieldname from "category-subcat-test"' category-subcat-test.csv >output.csv Commented Dec 21, 2019 at 11:48
  • 1
    Thank you, that worked :) Commented Dec 21, 2019 at 11:53