douweidao3882 2014-07-05 08:12
浏览 99
已采纳

drupal数据库结构..无法得到它

I am a PHP developer and I don't know much about Drupal. Now I have the task to fetch all restaurants names from a Drupal database. I have not been able to find out, which table Drupal is using to store the names of the restaurants. I am sure it's an easy task for anyone who knows Drupal.

enter image description here

enter image description here

enter image description here

enter image description here

  • 写回答

1条回答 默认 最新

  • douyu2817 2014-07-05 15:59
    关注

    I assume that you've lost site files or just don't want to mess with Drupal, because it is fairly easy to get data from working copy of site.

    This could work to retrieve names, if your restaurant implemented using node:

    • Look for type column in node_type table of a record which most likely is a Restaurant.

    • Than go to node table and filter by type column, which you got on step before this one.

    It is more complex if Restaurant is a custom entity provided by other module or a taxonomy term.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 无线电能传输系统MATLAB仿真问题
  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
  • ¥15 关于#hadoop#的问题