首页 \ 问答 \ 如果在2010年从零开始学习哪个数据库?(Which database if learning from scratch in 2010? [closed])

如果在2010年从零开始学习哪个数据库?(Which database if learning from scratch in 2010? [closed])

如果有人对数据库知之甚少,想从头开始了解它们,那么您推荐学习哪种数据库?为什么?

MySQL似乎无处不在,但还有其他更现代的,从过去吸取教训的人,还是其他更好或更符合逻辑的人使用?

通用兼容性/库不是一个大问题,除非它是真正模糊的东西。 Mac(Unix)兼容性是必须的。


If someone knew little about databases and wanted to learn about them from scratch, which database would you recommend learning with and why?

MySQL seems ubiquitous, but are there others that are more modern that have learned lessons from the past, or others that are simply nicer or more logical to work with?

Universal compatibility/libraries is not a big concern, unless it is something truly obscure. Mac (Unix) compatibility is a must.


原文:https://stackoverflow.com/questions/1989012
更新时间:2022-09-10 21:09

最满意答案

您的第二个问题是,如果您的用户只是点击Return ,则raw_input的返回值为空字符串"" ,而不是由command()处理。 您可以通过添加以下行来解决此问题:

elif user_input == "":
    pass

你的第一个问题是由于raw_input工作方式; 它总是等待用户输入后跟Return ,而不是用于连续控制输入。 这很难修复。 您可能更好地使用专为此类事物设计的库(连续键盘控制),如pygame


Your second problem is that, if your user just hits Return, the return from raw_input is an empty string "", which is not handled by command(). You could fix this by adding the lines:

elif user_input == "":
    pass

Your first problem is due to the way raw_input works; it always waits for user input followed by Return and is not designed for being used for continuous control input. This is trickier to fix. You might be better using a library designed for this sort of thing (continuous keyboard control), like pygame.

相关问答

更多
  • 该行为取决于浏览器。 我在Firefox,Chrome,IE和Edge中进行了测试,而且只有Chrome才具有您描述的行为。 不同之处在于触发beforeunload事件或处理事件时。 大多数浏览器在您更改location属性时立即触发事件,并立即处理它。 当导航实际即将发生时,Chrome会触发并处理事件,或者将事件放在队列中并稍后像常规事件一样处理它。 在Chrome中, setTimeout处理程序中的代码直到处理beforeunload事件之后beforeunload发生,因为导航是在任何排队事件之 ...
  • ASP.NET提供了一个SynchronizationContext ,它可以跟踪飞行中的异步操作的数量,并且在完成所有操作之前不会发送结果。 请注意,此ASP.NET中已删除此SynchronizationContext 。 但是,即使在ASP.NET上也不应该看到这种行为。 在同步方法调用async void方法的情况下,您应该看到InvalidOperationException ,并显示消息“此时无法启动异步操作”。 在异步方法调用async void方法(在处理程序返回之前未完成)的情况下,您应该 ...
  • // static tags $(function(){ // DOM ready $('.gridheader1').click(function() { alert('gridheader1 clicked'); }); }); // or if the tag is loaded via ajax use 'live'... $(function(){ // DOM Ready $('.gridheader1').live('click', function() ...
  • 您的第二个问题是,如果您的用户只是点击Return ,则raw_input的返回值为空字符串"" ,而不是由command()处理。 您可以通过添加以下行来解决此问题: elif user_input == "": pass 你的第一个问题是由于raw_input工作方式; 它总是等待用户输入后跟Return ,而不是用于连续控制输入。 这很难修复。 您可能更好地使用专为此类事物设计的库(连续键盘控制),如pygame 。 Your second problem is that, if your ...
  • 显然ao_play是阻塞的,所以你需要一个线程或分叉进程。 我不知道分叉的延迟(对于您的目的而言可能相当低),但线程显然更适合。 如果新的“播放声音”事件可能与主动声音的持续时间重叠,您最终会考虑混音。 特别是如果重叠的声音是可能的,我会有一个专用的fork或线程,它是唯一调用ao_play的函数,并向它发送消息,而不是每次都启动一个新的fork或thread。 Clearly ao_play is blocking, so you'd need a thread or forked process. I ...
  • 你想在这里使用JOIN语句 。 在你的查询已经做了什么,但实际写出一个更清晰。 SELECT u.name, u.email, u.id, ug.group_id FROM users u INNER JOIN users_groups ug ON ug.user_id = u.id WHERE u.id = $user_id (我假设$user_id已被正确地转义过)。 You want to use a JOIN statement here. Under the hood that's what y ...
  • 问题可能是您需要在数据字符串的末尾发送\n ,以便telnet服务器知道您已发送完整的数据序列。 否则很可能坐在那里等待更多输入。 尝试: $data = $p_ip." ".$p_name." ".$p_token . "\n"; The issue is probably that you need to send a \n at the end of your data string so the telnet server knows you have sent a full sequence o ...
  • 使用处理程序等待从Firebase获取数据 // construct the handler inside your adapter's constructor so you know it is on the UI thread Handler myHandler = new Handler(); class LoadData implements Runnable { TextView tvName, tvMessage, tvDate; int position; publ ...
  • 从wait(2) : The value of options is an OR of zero or more of the following constants: WNOHANG return immediately if no child has exited. WUNTRACED also return if a child has stopped (but not traced via ptrace(2)). Status for tr ...
  • 您的问题出在flit()函数中 - 您需要为setTimeout调用分配引用,以便可以对它们调用clearTimeout 。 现在,你正在停止在select()方法中调用flit() ,但这两个定时器仍然排队等待将来执行。 Your problem is in the flit() function - you need to assign references to the setTimeout calls so you can call clearTimeout on them. Right now, ...

相关文章

更多

最新问答

更多
  • 如何使用自由职业者帐户登录我的php网站?(How can I login into my php website using freelancer account? [closed])
  • 如何打破按钮上的生命周期循环(How to break do-while loop on button)
  • C#使用EF访问MVC上的部分类的自定义属性(C# access custom attributes of a partial class on MVC with EF)
  • 如何获得facebook app的publish_stream权限?(How to get publish_stream permissions for facebook app?)
  • 如何并排放置两个元件?(How to position two elements side by side?)
  • 在MySQL和/或多列中使用多个表用于Rails应用程序(Using multiple tables in MySQL and/or multiple columns for a Rails application)
  • 如何隐藏谷歌地图上的登录按钮?(How to hide the Sign in button from Google maps?)
  • Mysql左连接旋转90°表(Mysql Left join rotate 90° table)
  • 带有ImageMagick和许多图像的GIF动画(GIF animation with ImageMagick and many images)
  • 电脑高中毕业学习去哪里培训
  • 电脑系统专业就业状况如何啊?
  • IEnumerable linq表达式(IEnumerable linq expressions)
  • 如何在Spring测试中连接依赖关系(How to wire dependencies in Spring tests)
  • Solr可以在没有Lucene的情况下运行吗?(Can Solr run without Lucene?)
  • 如何保证Task在当前线程上同步运行?(How to guarantee that a Task runs synchronously on the current thread?)
  • 在保持每列的类的同时向数据框添加行(Adding row to data frame while maintaining the class of each column)
  • 的?(The ? marks in emacs/haskell and ghc mode)
  • 一个线程可以调用SuspendThread传递自己的线程ID吗?(Can a thread call SuspendThread passing its own thread ID?)
  • 延迟socket.io响应,并“警告 - websocket连接无效”(Delayed socket.io response, and “warn - websocket connection invalid”)
  • 悬停时的图像转换(Image transition on hover)
  • IIS 7.5仅显示homecontroller(IIS 7.5 only shows homecontroller)
  • 没有JavaScript的复选框“关闭”值(Checkbox 'off' value without JavaScript)
  • java分布式框架有哪些
  • Python:填写表单并点击按钮确认[关闭](Python: fill out a form and confirm with a button click [closed])
  • PHP将文件链接到根文件目录(PHP Linking Files to Root File Directory)
  • 我如何删除ListView中的项目?(How I can remove a item in my ListView?)
  • 您是否必须为TFS(云)中的每个BUG创建一个TASK以跟踪时间?(Do you have to create a TASK for every BUG in TFS (Cloud) to track time?)
  • typoscript TMENU ATagParams小写(typoscript TMENU ATagParams lowercase)
  • 武陟会计培训类的学校哪个好点?
  • 从链接中删除文本修饰(Remove text decoration from links)