Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
PostgreSQL 中插入varbinary值的语法是什么?
varbinary
SQL Server 的语法使用了类似的常量0xFFFF,但它不起作用。
0xFFFF
鉴于 Postgres 中没有“varbinary”数据类型,我相信您的意思是“bytea”。查看有关指定“bytea”文字的方式的文档。
根据您使用的语言和绑定,可能会有更复杂的方式来传输二进制数据 - 您可以在此处找到一个 .Net/C#/Npgsql 示例(在“使用二进制数据和 bytea 数据类型”下)。