+ 2

How can I store a very big text in sql?

Am currently working on a project that requires a very big text input. It's a lengthy string.

17th Dec 2020, 7:35 AM
De-Virus
12 ответов
+ 5
Put the text into a cloud and store the link in sql.
17th Dec 2020, 7:59 AM
Oma Falk
Oma Falk - avatar
+ 4
@ipang parallel to u😃
17th Dec 2020, 8:01 AM
Oma Falk
Oma Falk - avatar
+ 4
De-Virus You can't store more than defined size so you need to put size as max. If you defined size as 100 but you are sending content more than that then you will get error. I am sure this is happening in your case. We can store more than 1000 characters. It is just a example. There maybe more than 1000. If your content is too much then better to store in a file.
17th Dec 2020, 8:26 AM
A͢J
A͢J - avatar
+ 2
How big is this text you're working on anyways? If it was troubling you a lot, maybe you can opt to upload the file and save it in a directory as a file.
17th Dec 2020, 7:57 AM
Ipang
+ 2
De-Virus external storage is a good option. Also look into whether your DB engine supports a Memo field type like SQL Server does, or maybe BLOBs -- Binary Large OBjects.
17th Dec 2020, 11:18 AM
Brian
Brian - avatar
+ 1
See the data type table below, and pick one that suits your necessity. https://www.w3schools.com/sql/sql_datatypes.asp
17th Dec 2020, 7:49 AM
Ipang
+ 1
Thanks but still am facing the same problem.
17th Dec 2020, 7:52 AM
De-Virus
+ 1
It's a website and when I try insert a big text in the database it fails. It only works when I reduce the text length.
17th Dec 2020, 7:53 AM
De-Virus
+ 1
Frogged Good and modern idea 👍
17th Dec 2020, 8:03 AM
Ipang
+ 1
Thanks a lot for your time and help.
17th Dec 2020, 8:53 AM
De-Virus
0
you can simply put the text into a cloud and store the link in sql
17th Dec 2020, 9:13 PM
Trick Boy👹👹
Trick Boy👹👹 - avatar
0
simply extend time in php.ini execution time..extentend.. and phpmyadmin me default file me extend karni hoti h
19th Dec 2020, 12:39 PM
Dynmo Soz
Dynmo Soz - avatar