首页 \ 问答 \ MySQL数据库表结构(MySQL database table structuring)

MySQL数据库表结构(MySQL database table structuring)

我正在研究基于用户的社交网络。 我使用PHP构建网站,我想使用MySQL数据库来存储用户数据。 我可以创建数据库/表没有问题(我使用phpMyAdmin)我不知道有多少表是必要的,什么会对我的Web应用程序更实用。 有很多桌子会很聪明吗? 例如,一个USERS表。 列名分别为USER_ID,EMAIL,PASSWORD,LAST_LOGIN,然后是一个名为USER_SETTINGS的表,它将保存每个用户的帐户设置,另一个名为POSTS的表名称和值归于“状态更新”。 或者聪明地把所有东西放在一张桌子上? 最佳做法是什么?


I am working on a user based social network. I am building the site in PHP and I want to use a MySQL database to store user data. I can create databases/tables no problem (I use phpMyAdmin) I am not sure how many tables are necessary and what would be more practical for my web application. Would it be smart to have many tables? For example, a USERS table. With column names USER_ID, EMAIL, PASSWORD, LAST_LOGIN and then a table named USER_SETTINGS that would hold the account settings for each user, and another table named POSTS with the names and values attributed to a "status update". Or is smart to have everything in one table? What is the best practice?


原文:https://stackoverflow.com/questions/9728166
更新时间:2022-02-09 11:02

最满意答案

看来你试图使用不兼容的版本。

根据此 ,您需要使用1.7.x版本1.7.x以便与您的Mockito版本2.8.9兼容。


It seems you are trying to use incompatible versions.

According to this table, you need to use version 1.7.x of Powermock in order to be compatible with your Mockito version 2.8.9.

相关问答

更多
  • 第一件事你没有在你的类路径中添加gson库,第二件事你的请求( GET /static/java/com/google/gson/Gson.class HTTP/1.1 )是错误的。 如果您在/Generator.jar之类的/static/java下有gson jar,那么您可以像对MapGenerator.jar一样请求gson jar。 但你不能要求从那个罐子里获取课程。 1st thing you did not add gson library in your classpath and seco ...
  • 对不起,我刚刚搞乱了我的multidex设置。 所以如果有人会遇到类似的问题,请检查multidex是否设置正确。 Sorry, I just messed up my multidex setup. So if anyone will encounter similar problems check if multidex is set up correctly.
  • 您正在尝试使用java.nio.file.Paths ,而据我所见,它并不存在于Android中。 (仅支持Java 7 API的某些部分。) 目前还不清楚你在寻找什么路径,或者你将如何处理结果,但考虑使用File 。 编辑,现在我们知道了更多:您不应该将桌面JRE jar文件放在Android项目的类路径中。 这只是要求麻烦。 如果没有这样做,你会得到正确的编译时错误。 You're trying to use java.nio.file.Paths, which doesn't exist in And ...
  • 看来你试图使用不兼容的版本。 根据此表 ,您需要使用1.7.x版本1.7.x以便与您的Mockito版本2.8.9兼容。 It seems you are trying to use incompatible versions. According to this table, you need to use version 1.7.x of Powermock in order to be compatible with your Mockito version 2.8.9.
  • 好的,请执行以下操作: 将您的类放入jar文件,例如Applet.jar 把那个jar文件放在你的html文件旁边 将您的html文件调整为: 双击你的html文件 我认为由于最近applet安全性的变化,它仍然不起作用,所以你必须签署你的applet。 出于测试目的,请转到java控制面板,选项卡'Security'并将栏降低到'midd ...
  • 我是一名新手开发者,我似乎总是陷入这样的困境...... 解决方案是不使用JAR,而是将Showcaseview项目添加为库。 我通过以下步骤解决了同样的问题: 从https://github.com/amlcurran/ShowcaseView将“library”文件夹中的“Main”项目导入我的工作区 右键单击步骤1中导入的项目,然后单击属性> Android并选中“是库”框![在此处输入图像描述] [2] 右键单击要使用Showcaseview的项目,然后单击属性> Android并单击“添加” 从步 ...
  • 尝试这个: - 添加此依赖项compile 'com.android.support:multidex:1.0.1' - 在build.gradle应用程序配置中添加multiDexEnabled = true 。 - 将扩展应用程序“MyAplication.APPAplication”更改为MultiDexApplication 。 Try this: -Add this dependency compile 'com.android.support:multidex:1.0.1' -Add multi ...
  • 您首先指定类名,然后指定类路径的参数。 类名永远是特定于程序的参数之前的最后一件事。 在您的情况下,类路径部分因此不会被视为一个选项 - 它将被视为Java程序本身的两个参数( -cp和路径)。 所以代替: java a -cp (whatever) 你要 java -cp (whatever) a You're specifying the class name first, and then the arguments for the classpath. The class name is alw ...
  • 我建议您下载所有jar文件并将它们放在类路径中。 I Suggest you to download all jar files and place them in your Class path.
  • org.hibernate.common hibernate-commons-annotations 4.0.4.Final org.hibernate.common hibernate-commons-annotations

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)