Skip to main content

Questions tagged [replace]

0 votes
1 answer
59 views

I have a relatively small table (~250k rows) heavily using fulltext indexes. This table is updated every day basically replacing the rows with new information. However, the new rows are mostly the ...
comodoro's user avatar
  • 103
0 votes
1 answer
192 views

Looks like translate works for multi translations of single characters (abc -> xyz), but Replace in snowflake will only do 1 replacement. I have a list of JSON objects in a Snowflake SQL database ...
user45867's user avatar
  • 1,739
0 votes
1 answer
52 views

I take a Derived Column Transformation to replace a value as soon as a condition on two other columns is met. How can I see in the data flow how often a value changes by this replacement? Is there a ...
questionto42's user avatar
1 vote
2 answers
86 views

I am trying to solve The Blunder challenge under MySQL database and I am running into an error in what I thought to be a correct answer: SELECT CEIL(AVG(Salary) - AVG(CAST(REPLACE(CAST(Salary AS ...
love and light's user avatar
0 votes
1 answer
73 views

MySQL: 8.0.35 - Source distribution I have longtext (DC2Type:array) column and incorrect some characters values in a column string, so i want to replace this data format: a:2:{s:7:"content";...
Pawel W's user avatar
  • 27
1 vote
1 answer
678 views

I am trying to write a regex that can replace '[', ']' and '].' with '_' and in cases where ']' is the last character it should be replaced with '' but I am struggling to come up with a regex for it ...
Pepe Silvia's user avatar
0 votes
1 answer
228 views

I have a column which contains string values of the format e.g AB12345678 - two letters followed by 8 numeric digits. I need to write a MySQL query to insert a 5 before each set of 4 digits thus ...
therobyouknow's user avatar
0 votes
2 answers
72 views

in the school database course they teaches us with oracle database & i have a macbook what is the best replacement database to use?
jammiie's user avatar
3 votes
1 answer
318 views

Analyzing a simple query, I noticed that the REPLACE function increases the estimated row size. Look at the following query, executed on AdventureWorks: select p.BusinessEntityID, REPLACE(p.FirstName, ...
Alessandro Mortola's user avatar
1 vote
1 answer
342 views

I need to write a store procedure to update link reference in my DB. Link can be contained in few nvarchar field that contains JSONs (that could contains some urls). To do so i update the tables in ...
Skary's user avatar
  • 368
0 votes
0 answers
97 views

My database table named VmIpAddress has the following 12 columns id, hosting_id, server_id, vm_id, ip, mac_address, subnet_mask, gateway, cidr, trunks, tag, net A row might contain for example "...
Toodarday's user avatar
  • 113
0 votes
0 answers
490 views

I have part of a string that I would like to remove when selecting. The Problem is that there are a few pieces within the string that changes. This is what I have so far. Select GROUP_CONCAT(...
Joey Freeman's user avatar
1 vote
1 answer
396 views

I place the alias values in sql into a string sentence and constantly generate a new string with replace. But I have to do a lot of "replace" nested this way. The {{name}} in the string ...
omerix's user avatar
  • 101
0 votes
0 answers
134 views

To store emails list I have two quite simple tables, domain and mailbox, so [email protected] is stored as: domain id domain_name 1 domain.com mailbox id local_part domain_id 1 user 1 (local_part is ...
A_C's user avatar
  • 153
7 votes
2 answers
2k views

I inherited a system in which all updates (even to a single row/record) to MySQL tables are not done using UPDATE table_name SET. Rather, they are done by: Exporting the existing table to a CSV (text)...
WebViewer's user avatar
  • 173

15 30 50 per page
1
2 3 4 5 6