简体   繁体   中英

Can you use SQL to make a database for a HTML website?

I have made a very basic website using HTML. It is basically a template, the thing you start with. I want to use SQL to make a database. I would also like to display all of the data on that screen (index.html). Can you help me achieve that?

Short answer: No, not only with SQL.

SQL is a language used to perform queries in a database (inserting data, deleting, searching, etc.). To use it to display data on your website you would also need to learn some other programming language, so you can write code that will serve as an interface between your website and the database. Two most popular choices are Python (with Flask or Django) or NodeJS, I recommend using Python, since it's known to be somewhat beginner-friendly. I suggest finding a tutorial online to get you started.

Happy coding!

I think, you should use the 'sqlalchemy' for the database system. You can look the sqlalchemy documentation to have more info.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM