可以我建立一个不需要SQL知识的Java桌面应用程序吗?

huangapple go评论62阅读模式
英文:

can i build a java desktop application without sql knoledge

问题

我不是专业的程序员,我正在尝试使用Java构建一个桌面应用程序,但我需要将其与SQL结合起来,以便在表(数据库)中存储大量信息。

当我谷歌搜索时,我找到了很多小时的SQL教程,我仍然在努力学习Java,没有时间去处理SQL...
我是否可以在不学习SQL语言的情况下做到这一点呢?
我是否必须坐下来学习所有这些,还是有其他的方法?

(附言:抱歉,我觉得我的英语不是很好...)

英文:

i am not a pro with programming, and i'm trying to build a desktop app with java, but i need to combine it with sql in order to store a lot of info in a table (database..)

and when i googled i found hours of tutorials to learn sql,
i'm still struggling with java and i have no time to deal with sql too...
can i do this without learn the sql language and all...?

do i have to sit down and study it all or is there another way around?

(p.s. sorry, i think my english not that good...)

答案1

得分: 1

这里有一些选项:

  • 使用文件而不是数据库。您可以使用序列化将您的实例直接存储在文件中。
  • 使用非关系型数据库,这样您就不必学习 SQL。
  • 使用 SQL 数据库,但搜索一个 ORM。ORM 允许您与关系数据库交互,而无需直接输入 SQL(但在必要时仍然可以这样做)。
英文:

Well there's some options:

  • Use files instead of a database. You can make use of serialization to store your instances directly on files.
  • Use a non relational database so you won't have to deal with learning SQL
  • Use an SQL database but search for an ORM. ORMs let you interact with relational databases without typing SQL directly (but you can if you need to when necessary)

huangapple
  • 本文由 发表于 2020年9月10日 06:00:36
  • 转载请务必保留本文链接:https://go.coder-hub.com/63820116.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定