首页 > 解决方案 > 从 .NET 交互式笔记本中的 SQL 单元查询 postgres 数据库

问题描述

背景:在 Visual Studio Code 中,我可以执行以下操作:

  1. 安装.NET 交互式笔记本扩展。
  2. Ctrl-P > .NET Interactive: Create new blank notebook Create as '.dib'
  3. C# (.NET Interactive)单元格中,运行
    #r "nuget:Microsoft.DotNet.Interactive.SqlServer,*-*"
    #!connect mssql ...
  4. SQL (.NET Interactive)单元中,针对 SQL Server 执行 SQL 查询。

问题:我怎样才能对 Postgres 数据库做同样的事情?

标签: postgresqlvisual-studio-code

解决方案


推荐阅读