在SSMS中,編輯表格中的一行數據時,可以按Ctrl + 0在當前單元格中輸入空值。有沒有在單元格中輸入當前日期的快捷方式?SQL Server Management Studio - 輸入日期的快捷方式?
15
A
回答
9
此頁面http://msdn.microsoft.com/en-us/library/ms175917.aspx具有SQL Table Editor的快捷方式文檔。
在「結果窗格」下,它指定了可用的快捷方式,包括「在單元格中輸入null:CTRL + 0」。沒有其他列出的快捷方式可以滿足你的要求,所以我會說你用任何簡單易用的方法都會走運。
6
那麼,您可以添加GetDate()
作爲列的默認值。
然後,如果您在新行中填寫其他字段,並且不在日期字段中執行任何操作,則會在保存新行時添加當前日期。
編輯: 另一種解決方案,如果您是AutoHotkey的用戶(或希望)是創建一個應用程序特定熱鍵即插入當前日期。
FormatTime,CurrentDate,,M/d/yyyy
#IfWinActive,Microsoft SQL Server Management Studio
^9::SendInput,%CurrentDate%
return
您可以%CurrentDate%
之後添加{RIGHT}
自動移動到下一個單元格。
您可以將h:mm
或h:mm tt
添加到第一行以包含當前時間。
相關問題
- 1. Visual Studio 2010中的SQL Server Management Studio快捷方式?
- 2. SQL Server Management Studio 2014中的用戶快捷方式設置?
- 3. SQL Management Studio快捷鍵
- 4. SQL Server Management Studio中執行快捷鍵和鍵盤快捷鍵
- 5. SQL Server Management Studio的默認數據庫的桌面快捷方式
- 6. SQL 2008 Management Studio的鍵盤快捷鍵?
- 7. SQL Server Management Studio:通過鍵盤快捷方式打開表格進行編輯
- 8. SQL Server Management Studio:提示用戶輸入
- 9. SQL在SQL Server Management Studio中
- 10. SQL Server Management Studio鍵盤快捷鍵可突出顯示整行
- 11. SQL Server Management Studio
- 12. SQL Server Management Studio ZEROFILL
- 13. 快捷方式主輸出Visual Studio 2010
- 14. SQL Server Management Studio GROUP BY子句SHORTCUT
- 15. IBM Data Studio - 運行SQL快捷方式
- 16. Excel 2007和SQL Server Management Studio
- 17. 2005 SQL Server Management Studio
- 18. sql server management studio 2008
- 19. Android Studio導入類快捷方式
- 20. select * from where table = SQL Server Management Studio中的今天日期
- 21. 的SQL Server 2014 Management Studio中
- 22. 的SQL Server 2014 Management Studio中
- 23. SQL Server 2012 Management Studio - 腳本
- 24. SQL Server Management Studio Express數據導入
- 25. SQL Server Management Studio中計算年齡
- 26. SQL Server Management Studio - 選項卡式文檔
- 27. 是否可以在SQL Server Management Studio 2008中禁用'shift + space'快捷鍵?
- 28. SQL Server Management Studio鍵盤快捷鍵可突出顯示Line Up和Down
- 29. SQL Server Express 2008與Management Studio
- 30. SQL Server Management Studio Express中的錯誤242
謝謝 - 我懷疑是這樣。 – 2010-01-26 21:41:55
既然如此,最快的事情就是以YYYY-mm-dd格式輸入日期(時間將自動設置爲00:00:00)。 – voidstate 2015-08-13 14:24:42