Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Sql statements for creating and deleting databases

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces "create database and delete database sql statement". In daily operation, I believe that many people have doubts about creating database and deleting database sql statement. Xiaobian consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "creating database and deleting database sql statement". Next, please follow the editor to study!

1. Create a database

Create database name on primary {name = 'name', filename ='c:\ xx\ name .MDF', size = 10mb,-- initial size of the database filegrowth = 1mb,-- increase 1mb each time if the initial size is not enough. Maxsize = 20mb-the upper limit of the database space. Enter unlimited to indicate unlimited} log on {name=' name _ log', filename = "c:\ xx\ name _ log.ldf" size = 5mb, filegrowth = 10%. There are two ways to grow, one is to grow according to the fixed size, the other is to grow by percentage! Maxsize = 10mb}

two。 Delete database

You can only use the drop drop database name

At this point, the study of "sql statements for creating and deleting databases" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report