doulang6013 2015-01-20 08:09
浏览 133
已采纳

你能在PHP / MySQL中的数据库表中的每一行中创建/插入表吗?

Is it possible? If yes, how?

I am using xampp for my database and I wanted to make a database with "students" table, only one column for the list of student IDs, and every student ID has another table inside. (I was considering making tables for every student ID so that it can be done directly but it seems that it PHP/MySQL does not allow integers as table name).

  • 写回答

2条回答 默认 最新

  • dongtiao1817 2015-01-20 08:13
    关注

    No, you cannot put tables inside a row in SQL. That's not compatible with the concept of a relational database. What you can do is provide a foreign key to another table where you can collect the data you need to link to your first table.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?