在数据库中存储数据? [英] Storing data in database?

查看:81
本文介绍了在数据库中存储数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi Intrested Developer,
我正在做一个独立的考试项目.该应用程序将进行与不同主题相关的考试.
我的问题是:-
因为我要将问题及其选择存储在数据库中.
然后,如果我想存储c,c ++,java程序代码(因为它是多行的),那么如何
将它们存储在数据库中.
请帮助我解决这个问题.
如果您有执行此操作的任何链接或代码,请通过我的电子邮件转发给我.
[电子邮件已删除]
谢谢!

Hi Intrested Developer,
I am doing a standalone project on conducting exam. The application will conduct the exam related to different subjects.
My question is :-
As i am going to store the questions and their choices in database.
Then if i want to store a c, c++, java program code (as it is multiline) then how to
store them in the database..

Please Help me with the problem.
If you have any link or code to perform this please forward me at my email.
[email removed]
Thank You!

推荐答案

将其存储为单个字符串.换行符将保留为数据的一部分.您不需要示例代码.
Store it as a single string. The linefeeds will remain as part of the data. You shouldn''t need sample code.


好吧,基于多项选择的考试正在扼杀教育,而这已经扼杀了大部分教育.它不会促进任何真实的知识.许多人为这种考试做准备,而不是学习任何科学知识.您将为此做出贡献-祝贺您.

-SA
Well, examinations based on multi-select choices are killing the education, already killed big part of it. It does not promote any real knowledge. Many people prepare themselves to such exams, not learning anything in science. You''re going to contribute to that — congratulations.

—SA


请参见

这篇关于在数据库中存储数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆