Top "Truncate" questions

Data truncation is the automatic or deliberate shortening of data.

Truncate multiple tables in one MySQL statement

Is there a possibility to truncate with one SQL statement, multiple tables? Like this: truncate table #OBJ_AvailabilityTraining, #OBJ_AvailabilityHoliday, #…

sql truncate
Text-overflow CSS truncation

Earlier i was doing it dynamically using JS.. but we were getting some performance issues cuz of which we have …

text truncate css
Truncating a string in python

Someone gave me a syntax to truncate a string as follows: string = "My Text String" print string [0:3] # This is just …

python truncate
Lua: Rounding numbers and then truncate

Which is the best efficient way to round up a number and then truncate it (remove decimal places after rounding …

lua rounding truncate
Truncating a file while it's being used (Linux)

I have a process that's writing a lot of data to stdout, which I'm redirecting to a log file. I'd …

linux unix file logging truncate
Truncate string with Rails?

I want to truncate a string as follows: input: string = "abcd asfsa sadfsaf safsdaf aaaaaaaaaa aaaaaaaaaa dddddddddddddd" output: string = "abcd …

ruby-on-rails ruby truncate
How to empty a SQL database?

I'm searching for a simple way to delete all data from a database and keep the structure (table, relationship, etc...). …

sql database postgresql truncate
Unix shell script to truncate a large file

I am trying to write a Unix script which will truncate/empty a file which is continuously being written/open …

bash shell truncate
How to check if UILabel is truncated?

I have a UILabel that can be varying lengths depending on whether or not my app is running in portrait …

ios objective-c iphone uilabel truncate
Truncate a float and a double in java

I want to truncate a float and a double value in java. Following are my requirements: 1. if i have 12.49688f, …

java floating-point double truncate