Skip to main content

Questions tagged [varchar]

Normally refers to a variable length string data type.

1 vote
1 answer
82 views

have a log table that stores execution logs for many different functions. Each row contains the function name, and the table has millions of rows. To improve performance and manage the data better, I ...
Arm.'s user avatar
  • 11
0 votes
1 answer
79 views

Are there any optimization benefits (storage/query speed/...) of choosing specific lengths for VARCHAR columns in PostgreSQL? Like, 2^n-1 or something similar?
xaxa's user avatar
  • 111
0 votes
1 answer
86 views

I am new to string handling in SQL server and was wondering what makes the below code return the result it returns. Could I please have a detailed explanation? My code: Select CAST(CAST(CAST('08' as ...
varun as's user avatar
0 votes
1 answer
157 views

I have a table that I believe owes most of its size to a huge NVARCHAR(max) column. I do not know how to test where most of its size comes from. Regardless, would such a table benefit from row ...
J. Mini's user avatar
  • 1,322
-1 votes
3 answers
659 views

My biggest table owes most of its size to a stupid NVARCHAR(max) column that I wager could easily be NVARCHAR(4000) or smaller. What steps can I take to become confident that this change is safe to ...
J. Mini's user avatar
  • 1,322
2 votes
1 answer
211 views

I have a column defined as character varying(20). But it is accepting more than 20 characters. I've already searched but couldn't find anything about it (maybe I'm searching wrong). Has anyone ...
FranS's user avatar
  • 23
2 votes
1 answer
570 views

I have a table with ~100mln rows. One of the columns is a VARCHAR(64) with utf8mb4 encoding for storing user nicknames (others are few integers). The data in that column has MAX(LENGTH()) == 42 and ...
herhor67's user avatar
0 votes
2 answers
380 views

There is a table that has a column defined as follows: text_id varchar(255) NOT NULL I know that using varchar is optimal for storing text because it allows for variable length columns but in this ...
Jim's user avatar
  • 123

15 30 50 per page
1
2 3 4 5
11