I am using XAMPP
and I want to store image paths on my phpmyadmin
database and I saw here: Database design : preferred field length for file paths that the best options to store file paths should be VARCHAR(MAX)
or NVARCHAR(MAX)
.
As I cannot set VARCHAR(MAX)
or NVARCHAR(MAX)
on my phpmyadmin
,
How can I store these paths on my database properly? I mean, what is the best option to store them on my database?
Edit: I have seen the question that has been marked as possible duplicate. I know that I can "simulate" the VARCHAR(MAX)
on phpmyadmin
but, as it does not exist by default, it would be better to use another length instead of MAX
?
I think that if you set a path of length 100 and you have your MAX
as the limit is not worth so VARCHAR(suitable number)
would be better than VARCHAR(MAX)
(or at least I think it would be better). I am new with MySQL
so I do not know about the entrails of it (by the moment).
I think it can be problems of performance or maybe memory but I cannot find anything on the official documentation so please if you find something related post here.
Is there a suitable length for store paths on phpmyadmin? A number of length that it is usually used (and why).
Thanks in advance!