Generation of SQL Queries via C-language

I'm still not sure what you are looking for.

  1. On the one hand, it sounds like you are looking to build a program that emits SQL that is ANSI SQL translated to another language. As I pointed out, I'm not sure where you would run that.

  2. On the other hand, it sounds like you want to build a program that reads SQL written in another language (like my previous example in Dutch) and translates it.

I'm not sure if you want to do 1 or 2. Perhaps if you post a few of the links you referred to, we can help you out a bit more.

Note that this is a SQL Server forum, not a C forum. However, the Postgres project is completely open source, as is MySql, MariaDB and others. If you are looking for examples of C programs that parse SQL, you can start there.