Combine java with SQL?

This is not a code problem, but it certainly puzzles me

Basically, my lecturer told me that we have a project that will expire next semester, which involves the interweaving of Java and SQL

I don't know. I can even combine languages!

So my thoughts are really great

I have been looking for examples of such code, but I have no luck So I think I'll ask you

I think the most logical thing is that I have no composition experience, so I create tables in SQL because it is used in the database and call them through Java

Anyone can explain to me that this is possible, or just how language works together

Solution

What you might want to do is use JDBC to allow java to connect to SQL databases There are also persistence layers, such as hibernate, that can be used to store and retrieve data in a database using Java

I think the JDBC tutorial should be enough to get you started Just don't overdo it Take time to ask questions when they arise

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>