---
title: "MySql数据库中为已创建的表加外键"
author: "Illy"
date: "2012-06-20T11:08:20Z"
tags: []
categories: ["数据库"]
slug: "mysql"
draft: false
lastmod: "2012-06-20T11:08:20Z"
id: 1564534
url: "https://illy.iteye.com/blog/1564534"
---

alter table bas_wine_norm
add
constraint
fk_basWineNorm_wineid
foreign key(wine_id)
references bas_wine_info(wine_id)