查找作为Firebird数据库中主键的所有列名(Find all column names that are primary keys in Firebird database)
我需要在表中找到主键的所有列并返回其列名。
有没有办法使用Firebird .net API的
Connection.GetSchema()
方法实现这一目标? 如果没有,SQL语句将如何实现这一目标?我不需要一个完整的代码示例,但需要一些有关如何执行此操作的指导。
在我的场景中,我有一个Firebird嵌入式数据库,我想从数据库模式生成存储的prodecures。 我需要主键列名来在表上生成触发器,该表将一些元数据插入到跟踪表中。
我使用最新版本的Firebird和最新的.net连接器(v.2.5.5)
如果您需要有关我的问题的更多信息,请评论!
I need to find all columns in a table that are primary keys and return their column names.
Is there a way I can achieve this with the
Connection.GetSchema()
method of the Firebird .net API? If not, how would a SQL statement look like to achieve this?I don't need a complete code example but some guidance on how to do it.
In my scenario I have a Firebird embedded database and I want to generate stored prodecures from the database schema. I need the primary key column names to generate triggers on a table that insert some metadata into a tracking table.
I use the latest version of Firebird with the latest .net connector (v.2.5.5)
If you need more information about my problem please comment!
原文:https://stackoverflow.com/questions/36617891
最满意答案
难道你打开Python文件?
Janus在
ft=python
上强制PEP8 https://github.com/carlhuda/janus/blob/f09d7d383282074ea5477ce7f4f4e2141887a4a7/janus/vim/core/before/plugin/filetypes.vim#L38Janus应该使用
setlocal
而不是set
Could it be that you're opening Python files?
Janus forces PEP8 on
ft=python
https://github.com/carlhuda/janus/blob/f09d7d383282074ea5477ce7f4f4e2141887a4a7/janus/vim/core/before/plugin/filetypes.vim#L38Janus should be using
setlocal
instead ofset
相关问答
更多-
NERDTree和vim-windows(NERDTree and vim-windows)[2023-06-16]
尝试:NERDTreeFocus从任何打开的窗口跳转到NERDTree窗口。 这是最近添加的,似乎: https://github.com/scrooloose/nerdtree/pull/132 Try :NERDTreeFocus to jump to the NERDTree window from any open window. This was added relatively recently, it seems: https://github.com/scrooloose/nerdtree/ ... -
我遇到了调整标签大小的问题,所以我只需在设置文本后执行chatTextLabel?.updateConstraints() var chatMessage: ChatMessage! { didSet { setContent() } } func setContent() { chatTextLabel.text = chatMessage.message chatTextLabel?.updateConstraints() // here let ...
-
难道你打开Python文件? Janus在ft=python上强制PEP8 https://github.com/carlhuda/janus/blob/f09d7d383282074ea5477ce7f4f4e2141887a4a7/janus/vim/core/before/plugin/filetypes.vim#L38 Janus应该使用setlocal而不是set Could it be that you're opening Python files? Janus forces PEP8 on ...
-
git grep lcd显示它没有在任何地方使用。 因此,我认为您唯一的选择是: 1)自己修补( git grep cd说有3个地方:cd )。 2)在github上打开一个问题报告(但请确保在此之前查看未解决的问题列表,其中有132个。:-)) git grep lcd reveals that it is not used anywhere. Thus I think your only choices are: 1) Patch it in yourself (git grep cd says the ...
-
这是答案。 我希望它可以帮助你: 使用包tabularx如下: \usepackage{tabularx,booktabs} . . . \begin{table*}[!t] \caption{Caption} \label{tbl:tbl} \centering \begin{tabularx}{\textwidth}{X X} \toprule Item 1 & Item 2 \\ \midrule Item 1 description & Item 2 description \\ . . . \bo ...
-
确保设置了文本字段的autoSize属性,这将使Flash将宽度识别为文本的宽度,而不是包含文本字段的宽度。 尝试像这样... myTextField.autoSize = TextFieldAutoSize.LEFT; trace(myTextField.textWidth); Make sure you set the autoSize property of the text field, this will cause flash to recognize the width as the wid ...
-
textwidth = 78(而不是80)的原因是什么?(What is the reason/origin of textwidth=78 (rather than 80)?)[2024-02-28]
正如在评论中指出的那样, RFC2822 (互联网信息格式或“电子邮件”)推荐78行的长度(不包括CRLF)。 它给出的理由是 更保守的78个字符的建议是为了适应用户界面的许多实现,这些用户界面显示这些消息,这些消息可能会截断或灾难性地包装每行显示超过78个字符 我不认为RFC2822是为什么你常常看到78个字符的行长度,但我怀疑这个理由是相似的。 在过去的时代,终端通常是80列显示设备。 文本行长度为78,为您提供两列“UI”空间,用于显示缓冲区滚动位置或行号等内容。 对于任何人来说,100行就够了,对吧 ... -
Windows上的NERDTree(NERDTree on windows)[2023-11-28]
不。您没有按照说明操作, 并且您将病原体和nerdtree克隆在错误的目录中。 您的配置(vimrc / plugins / colorschemes / ...)应位于%UserProfile%目录中: %UserProfile%\vimfiles\ %UserProfile%\_vimrc 在Windows XP上: C:\Documents and Settings\karthikbharadwaj\vimfiles\ C:\Documents and Settings\karthikbharadw ... -
您可以通过以下方式在单独的GVIM实例中启动文件: :silent execute '! gvim' shellescape(filename, 1) 对于Windows,请使用!start而不是! 。 NERDTree有关于如何扩展它的很好的文档。 请参阅:help NERDTreeKeymapAPI和:help NERDTreeMenuAPI 。 You can launch a file in a separate GVIM instance via this: :silent execute '! ...
-
在vim中设置textwidth而不覆盖特定于filetype的文件(set textwidth in vim without overriding filetype specific)[2022-10-06]
Vim覆盖了全局与缓冲区本地选项。 如您所述,您应该:set在~/.vimrc :set全局默认值,某些文件类型可以使用:setlocal覆盖全局默认值。 如需排除故障,请尝试 :verbose set tw? 这应该告诉你修改选项值的最后一个地方。 编辑 对于ft=gitcommit ,如果(全局值)为空,则它具有仅设置textwidth的特殊逻辑: if &textwidth == 0 " make sure that log messages play nice with git-log o ...