久久精品人人爽,华人av在线,亚洲性视频网站,欧美专区一二三

mysql遷移到sybase ase中null問題怎么處理

共計(jì) 1594 個(gè)字符,預(yù)計(jì)需要花費(fèi) 4 分鐘才能閱讀完成。

這篇文章將為大家詳細(xì)講解有關(guān) mysql 遷移到 sybase ase 中 null 問題怎么處理,丸趣 TV 小編覺得挺實(shí)用的,因此分享給大家做個(gè)參考,希望大家閱讀完這篇文章后可以有所收獲。

[root@testlihb ~]# su – mysql
-bash-4.1$ mysql -uroot -p********* -h227.0.0.1 -P3306

mysql show databases;
+——————–+
| Database           |
+——————–+
| information_schema |
| mysql              |
| performance_schema |
| test               |
+——————–+
4 rows in set (0.00 sec)

mysql use test
Database changed
mysql create table t (a int,b int);
Query OK, 0 rows affected (0.65 sec)

mysql insert into t values (1,null);
Query OK, 1 row affected (0.09 sec)

mysql insert into t values (null,1);
Query OK, 1 row affected (0.10 sec)

mysql select * from t;
+——+——+
| a    | b    |
+——+——+
|    1 | NULL |
| NULL |    1 |
+——+——+
2 rows in set (0.00 sec)

mysql  
mysql select ifnull(a,) as a,ifnull(b,) as b from t into outfile /tmp/t.txt
Query OK, 2 rows affected (0.00 sec)

mysql  
mysql  
mysql ^DBye
-bash-4.1$ 
-bash-4.1$ 
-bash-4.1$ id
uid=27(mysql) gid=27(mysql) groups=27(mysql)
-bash-4.1$ logout
[root@testlihb ~]# su – sybase

[sybase@testlihb ~]$ isql -Usa -P**** -SASE -w999
1 use tempdb
2 go

1 create table t (a int null,b int null)
2 go
1 select * from tempdb..t
2 go
 a           b           
 ———– ———– 

(0 rows affected)
 
[sybase@testlihb ~]$ bcp tempdb..t in /tmp/t.txt -Usa -SASE -P***** -c

Starting copy…

2 rows copied.
Clock Time (ms.): total = 117  Avg = 58 (17.09 rows per sec.)
[sybase@testlihb ~]$ 
[sybase@testlihb ~]$ isql -Usa -P***** -SASE -w999
1 select * from tempdb..t
2 go
 a           b           
 ———– ———– 
           1        NULL 
        NULL           1 

(2 rows affected)
1  
2 select * from tempdb..t where b is null
3 go
 a           b           
 ———– ———– 
           1        NULL 

(1 row affected)
1  

關(guān)于“mysql 遷移到 sybase ase 中 null 問題怎么處理”這篇文章就分享到這里了,希望以上內(nèi)容可以對(duì)大家有一定的幫助,使各位可以學(xué)到更多知識(shí),如果覺得文章不錯(cuò),請(qǐng)把它分享出去讓更多的人看到。

正文完
 
丸趣
版權(quán)聲明:本站原創(chuàng)文章,由 丸趣 2023-07-26發(fā)表,共計(jì)1594字。
轉(zhuǎn)載說明:除特殊說明外本站除技術(shù)相關(guān)以外文章皆由網(wǎng)絡(luò)搜集發(fā)布,轉(zhuǎn)載請(qǐng)注明出處。
評(píng)論(沒有評(píng)論)
主站蜘蛛池模板: 冕宁县| 信丰县| 阜新市| 瑞昌市| 昆山市| 垫江县| 德江县| 六安市| 石楼县| 丰都县| 建宁县| 栾川县| 昭通市| 多伦县| 潜江市| 上饶县| 台州市| 高淳县| 九龙坡区| 天气| 聂拉木县| 平邑县| 防城港市| 安义县| 拉萨市| 湟中县| 游戏| 洮南市| 徐闻县| 手游| 特克斯县| 怀宁县| 鄂尔多斯市| 舒城县| 常州市| 福鼎市| 海城市| 阿克苏市| 巍山| 青州市| 二手房|