Is it a good way to use system() for database scripts from C?

后端 未结 3 2084
耶瑟儿~
耶瑟儿~ 2021-01-05 13:06

I was searching for connecting to database from C program. But I thought the ODBC connections, logon and all need some libraries. Also I am having a minimal compiler like Ti

3条回答
  •  旧时难觅i
    2021-01-05 13:34

    The method is fine: it's great to decouple the db subsystem and the parser subsystem by implementing them in an appropriate language.

    There's just this tiny little thing - but I may be mistaken because I'm not familiar with bteq: the program will need a bteq script installed in the execution folder; this script will contain username and password. If those aren't encripted in some way, there might be a security flaw.

提交回复
热议问题