mysql initialvalue_如何在MySQL中設置初始值和自動增量?

29

MySQL Workbench

MySQL工作台

If you want to avoid writing sql, you can also do it in MySQL Workbench by right clicking on the table, choose "Alter Table ..." in the menu.

如果您想避免編寫sql,也可以在MySQL Workbench中通過右鍵單擊該表,在菜單中選擇“Alter table…”。

When the table structure view opens, go to tab "Options" (on the lower bottom of the view), and set "Auto Increment" field to the value of the next autoincrement number.

當表結構視圖打開時,轉到選項卡“Options”(在視圖的底部),並將“自動增量”字段設置為下一個自動增量數字的值。

Don't forget to hit "Apply" when you are done with all changes.

當您完成所有更改時,不要忘記點擊“Apply”。

PhpMyAdmin:

PhpMyAdmin:

If you are using phpMyAdmin, you can click on the table in the lefthand navigation, go to the tab "Operations" and under Table Options change the AUTO_INCREMENT value and click OK.

如果您正在使用phpMyAdmin,可以單擊左側導航中的表,轉到“Operations”選項卡,在“table Options”下更改AUTO_INCREMENT值並單擊OK。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值