首页 \ 问答 \ MySQL中的外键基础(Basics of Foreign Keys in MySQL?)

MySQL中的外键基础(Basics of Foreign Keys in MySQL?)

有没有什么好的解释如何使用MySQL的外键结构?

我从MySQL文档本身不太清楚。 到目前为止,我已经处理像外键这样的联接和编程代码。

而问题的第二部分,使用MySQL的内置外键有什么改进?


Is there any good explanation of how to use MySQL's foreign key construct?

I don't quite get it from the MySQL docs themselves. Up until now I've been handling things like foreign keys with joins and programming code.

And the second part of the question, are there any improvements to be made by using MySQL's inbuilt foreign keys?


原文:https://stackoverflow.com/questions/757181
更新时间:2023-11-29 10:11

最满意答案

那么你可以流式传输这些文件,至少你不必将它们保存到本地磁盘上,但除此之外,我认为你的解决方案就是要走的路。

它取决于你的语言流媒体是如何工作的,但基本上你可以立即下载文件并将其上传到GCS,而不必将任何字节写入本地磁盘。


Well you could stream the files so at least you wouldn't have to save them to local disk, but other than that I think your solution is the way to go.

It depends on your language how streaming works exactly, but basically you download the file and upload it to GCS right away without ever writing any bytes to local disk.

相关问答

更多
  • Google云端存储目前不提供全文搜索功能。 身份需要Google / gmail帐号,但请查看签名网址: https : //developers.google.com/storage/docs/accesscontrol#Signed-URLs 。 您的应用可以确定您的某个用户是否应该有权访问应用,然后向用户提供一个签名的url,以便在一段有限的时间内授予对该用户的访问权限。 Google cloud storage does not offer full text search at this tim ...
  • 好。 因此,经过数小时的研究和测试,我想出了一种让它发挥作用的方法。 Google的API身份验证过程至少可以说有点令人困惑。 一般程序如下: 要求用户授予INSERT YOUR PROJECT HERE在此范围内INSERT YOUR PROJECT HERE权限 用户可以接受或拒绝该请求 如果用户接受,您可以检索访问令牌(更重要的是刷新令牌) 获得刷新令牌后,您可以随时获取新的访问令牌以进行API调用。 因此,这样做的整个目标是进行需要刷新代码的API调用(特别是驱动)。 这方面的主要困难是(尽管我知道 ...
  • 那么你可以流式传输这些文件,至少你不必将它们保存到本地磁盘上,但除此之外,我认为你的解决方案就是要走的路。 它取决于你的语言流媒体是如何工作的,但基本上你可以立即下载文件并将其上传到GCS,而不必将任何字节写入本地磁盘。 Well you could stream the files so at least you wouldn't have to save them to local disk, but other than that I think your solution is the way to ...
  • 使用API,您将能够告诉BigQuery在表提取过程中不打印标题行。 这是通过将configuration.extract.printHeader选项设置为false 。 有关更多信息,请参阅文档 。 命令行工具也应该能够做到这一点。 一旦你完成了这些,连接文件就容易多了。 在Linux / Mac电脑中,它将是一个单一的cat命令。 但是,您也可以尝试通过使用compose操作直接从云存储进行连接。 在这里看到更多细节 。 可以从API或命令行实用程序执行组合。 由于构图操作仅限于32个组件,因此您必须在 ...
  • 对于备份,您可以使用: https : //developer.android.com/guide/topics/data/backup.html 为了同步,他们在这里的游戏服务上宣布了一个Google Drive API,但我仍然找不到它的文档,应该很快就可以使用。 for backup you can use: https://developer.android.com/guide/topics/data/backup.html for synchronization, they announced a ...
  • Dropbox Apps API可以使用您的API密钥将任何应用限制为Dropbox帐户的单个目录。 因此,用户可以创建一个可以访问特定目录的API密钥,然后将其插入您的应用程序。 但是,这不是一个用户友好的工作流程。 我认为Dropbox Drop-Ins Chooser / Saver API可能接近你想要的。 向用户显示Dropbox文件选择弹出窗口,您的应用程序只能访问用户选择的特定文件。 The Dropbox Apps API provides the ability to restrict a ...
  • 谷歌提供了更多的服务,并在减少消费者成本的同时做得更多。 谷歌很难被击败,但Dropbox可以在存储战争中匹配或击败谷歌。 真正的游戏规则改变者将是Mailbox,而这只是即将上市。 似乎Google文档文档列表API提供了对Google云端硬盘文件的某种程度的编程访问权限。 Google云端硬盘开发者网站上的文档目前根本不讨论该功能,并表示除非用户首次在Chrome网上应用店中安装了此应用,否则应用“将无法访问文件。” 目前尚不清楚Google Docs API是否将用于支持桌面和移动应用程序对任意Goo ...
  • 你不能在任何这些服务(我知道)上执行远程代码,但你当然可以将文件保存到它们。 例如,您可以将文本文件(CSV?XML?JSON?)写入这些位置。 查看Dropbox SDK了解如何将其集成到iOS或Android项目的详细信息。 这很简单。 以下是上传文件的基本代码示例: NSString *localPath = [[NSBundle mainBundle] pathForResource:@"Info" ofType:@"plist"]; NSString *filename = @"Info.plis ...
  • 不要在Dropbox或Google Drive上放置Git仓库。 这很糟糕。 在同步时,Dropbox可以对所有git的内部文件进行争夺,并将其整理为整个存储库。 相反,使用Git服务。 对于私密的东西,我推荐BitBucket 。 例证: 想象一下,你把你的主要存储库放在Dropbox上。 您将Dropbox同步到另一台计算机并推送到它。 连接从该计算机中删除。 你去其他计算机,做另一个提交,并推入到主存储库。 一切都很好。 Dropbox开始在这台电脑上同步。 同时,另一台计算机也开始同步。 但在内部, ...
  • 您是否想过使用用于数据转换的Azure Data Factory 定制活动支持? 在后端,如果使用ADF自定义活动,则可以使用Azure Batch下载,更新和上传文件到Google Storage。 Did you think about using Azure Data Factory custom activity support that is used for data transformation? On back-end, you can use Azure Batch for downloa ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。