Creating a site to query a database of tables

前端 未结 7 828
后悔当初
后悔当初 2021-01-18 07:45

I have a small problem. I am working with some manual testers who are untrained in programming/database design. Our current process means that these manual testers need to i

7条回答
  •  无人及你
    2021-01-18 08:21

    Not sure if you want spend time on writing and supporting your solution. For php/mysql I would use http://www.phpmyadmin.net/home_page/index.php or if users can access db directly http://dev.mysql.com/downloads/gui-tools/5.0.html

    Might take some time to tech them how to use it, but will save a lot of problems in a long run.

    Another thing, you can create *.sql files that would populate db automatically.

    query.sql

    CREATE TABLE "example" (
        "id" INT NOT NULL AUTO_INCREMENT, 
        "name" VARCHAR(30), 
        "age" INT
    );
    
    INSERT INTO "example" VALUES
    ('1', 'a', 1),    
    ('2', 'b', 2);
    

    than you can run it from command line:

    mysql -u USER -pPASSWORD database_name < filename.sql

提交回复
热议问题