![](/img/trans.png)
[英]Numeric Data in MySQL displays as Boolean TRUE/FALSE in textboxes on VB 2010
[英]is there any way to export mysql boolean data as 'true' or 'false'
我有一個MySQL數據庫,我想將數據導入PostgreSQL。 問題是當我將源文件導出為SQL轉儲時,我需要布爾列為“ true”或“ false”。 有什么辦法可以像導出它一樣,也可以將存儲為0
和1
布爾值導入到PostgreSQL中。
您可以導入這些,然后在以后更改類型。
看到:
chris=> select 1::bool;
bool
------
t
(1 row)
chris=> select 0::bool;
bool
------
f
(1 row)
chris=> select 3::bool;
bool
------
t
(1 row)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.