鍍金池/ 問答/數(shù)據(jù)庫(kù)/ 這個(gè)數(shù)據(jù)無(wú)法讀出來嗎?

這個(gè)數(shù)據(jù)無(wú)法讀出來嗎?

use lyb;

show tables;
Tables_in_lyb
_link
admin
author
cart
city
link
lyb
lyb1
messages
news
province
route
shop

13 rows in set (0.00 sec)

MariaDB [lyb]> select * from link;
ERROR 1932 (42S02): Table 'lyb.link' doesn't exist in engine

這個(gè)數(shù)據(jù)庫(kù)文件中,有

ls /var/lib/mysql/lyb
admin.frm city.frm link.frm lyb1.frm messages.MYD province.frm
author.frm db.opt link.MYD lyb.frm messages.MYI route.frm
cart.frm _link.frm link.MYI messages.frm news.frm shop.frm

回答
編輯回答
旖襯

在ORACLE里字段名或者表名可以以下劃線開頭,但必須用雙引號(hào)括起來;話說盡量不要以下劃線開頭啊,有點(diǎn)奇葩。

范例:

SQL> create table t1(_col1 number,_col2 number);

create table t1(_col1 number,_col2 number)

ORA-00911: 無(wú)效字符

SQL> create table t1("_col1" number,"_col2" number);

Table created

2017年5月8日 10:07