MySql:无法识别的关键字。 (在“ CASCADE”附近)

时间:2018-11-26 22:28:51

标签: mysql

在执行简单的mysql查询时出现此错误。有谁知道要解决此问题?

#include <stdio.h>
#include <stdlib.h>

FILE *fopen_with_error (const char *f, const char *mode){
    FILE *fp;
    if((fp = fopen(f,mode)) == NULL){
        printf("Error opening %s\n",f);
        exit(EXIT_FAILURE);
    }
    return fp;
}

int main(int argc, char* argv[]){

    FILE *fp;
    int a, num;
    if(argc != 2){
        printf("Usage: program input file\n");
        return 0;
    }
    fp = fopen_with_error(argv[1],"rb");
}

0 个答案:

没有答案