DDL-Data definition language

2017-08-05  本文已影响17人  Zihowe

A data definition language or data description language (DDL) is a syntax similar to a computer programming language for defining data structures, especially database schemas.

In Djanog, what the DDL is the Migration operations. You just change the model in Djano and it will create migration operations automatically for you and run sql like this migrations.RunSQL("INSERT INTO musician (name) VALUES ('Reinhardt');")


References:
https://en.wikipedia.org/wiki/Data_definition_language
https://docs.djangoproject.com/en/1.11/ref/migration-operations/

上一篇 下一篇

猜你喜欢

热点阅读