時(shí)間:2024-02-13 10:24作者:下載吧人氣:17
1 創(chuàng)建數(shù)據(jù)庫并插入數(shù)據(jù)
use jinxt
db.adou.insert({name:”jinxt”,age:”28″}); //剛創(chuàng)建的數(shù)據(jù)庫 jinxt并不在數(shù)據(jù)庫的列表中, 要顯示它,我們需要向 jinxt數(shù)據(jù)庫插入一些數(shù)據(jù)
show dbs
db.dropDatabase(); //刪除數(shù)據(jù)庫
網(wǎng)友評(píng)論