首页 \ 问答 \ 查找作为Firebird数据库中主键的所有列名(Find all column names that are primary keys in Firebird database)

查找作为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
更新时间:2023-05-14 09:05

最满意答案

难道你打开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 ft=python https://github.com/carlhuda/janus/blob/f09d7d383282074ea5477ce7f4f4e2141887a4a7/janus/vim/core/before/plugin/filetypes.vim#L38

Janus should be using setlocal instead of set

相关问答

更多
  • 尝试: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 ...
  • 正如在评论中指出的那样, RFC2822 (互联网信息格式或“电子邮件”)推荐78行的长度(不包括CRLF)。 它给出的理由是 更保守的78个字符的建议是为了适应用户界面的许多实现,这些用户界面显示这些消息,这些消息可能会截断或灾难性地包装每行显示超过78个字符 我不认为RFC2822是为什么你常常看到78个字符的行长度,但我怀疑这个理由是相似的。 在过去的时代,终端通常是80列显示设备。 文本行长度为78,为您提供两列“UI”空间,用于显示缓冲区滚动位置或行号等内容。 对于任何人来说,100行就够了,对吧 ...
  • 不。您没有按照说明操作, 并且您将病原体和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覆盖了全局与缓冲区本地选项。 如您所述,您应该:set在~/.vimrc :set全局默认值,某些文件类型可以使用:setlocal覆盖全局默认值。 如需排除故障,请尝试 :verbose set tw? 这应该告诉你修改选项值的最后一个地方。 编辑 对于ft=gitcommit ,如果(全局值)为空,则它具有仅设置textwidth的特殊逻辑: if &textwidth == 0 " make sure that log messages play nice with git-log o ...

相关文章

更多

最新问答

更多
  • 您如何使用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)