Top "Truncate" questions

Data truncation is the automatic or deliberate shortening of data.

How do I truncate a list in C#?

I know in python you can do something like myList[1:20] but is there anything similar in C#?

c# list truncate
Javascript truncate HTML text

Does JavaScript have a way of truncating HTML text without all the headaches of matching tags etc etc? Thank you.

javascript html truncate
Truncate or Drop and Create Table

I have this table in a SQL Server 2008 R2 instance which I have a scheduled process that runs nightly against …

sql-server tsql truncate
How do I create a new Joda DateTime truncated to the last hour?

I am pulling timestamps from a file that I want to create a new DateTime for, but I want to …

java datetime truncate jodatime floor
Unwanted Decimal Truncation

My Model: public class Product { ... public decimal Fineness { get; set; } ... } Seeding the Database: new List<Product> { new Product { ..., …

c# asp.net-mvc entity-framework truncate
Redshift: TRUNCATE TABLE IF EXISTS

It is recommended to use TRUNCATE TABLE instead of DELETE. However, truncate table does not support the IF EXISTS clause. …

sql amazon-redshift truncate drop-table
java converting int to short

I am calculating 16 bit checksum on my data which i need to send to server where it has to recalculate …

java truncate unsigned-long-long-int
New NSData with range of old NSData maintaining bytes

I have a fairly large NSData (or NSMutableData if necessary) object which I want to take a small chunk out …

nsdata truncate nsmutabledata
Why 'delete from table' takes a long time when 'truncate table' takes 0 time?

(I've tried this in MySql) I believe they're semantically equivalent. Why not identify this trivial case and speed it up?

sql mysql performance truncate
How to truncate an UTF8 string in PHP?

I have some strings in my PHP code that need to be truncated if they are too long. For example …

php string utf-8 truncate