mysql經常使用sql

批量寫入數據:
insert into content_market(target_type,target_id,createtime,updatetime) 
select '0',postId ,now(),now() from  post order by postId desc limit 90,10;

mac 控制檯輸入登陸mysql客戶端mysql

[root@DB-Server tmp]# mysql -u root -psql

Enter password:
相關文章
相關標籤/搜索