MSSQL deletes characters that do not contain a single character

Updated on technology 2024-02-09
16 answers
  1. Anonymous users2024-02-05

    stuff deletes characters of the specified length and inserts another set of characters at the specified starting point.

    Grammar. stuff ( character_expression , start , length , character_expression )

    Parameter. character_expression

    An expression consisting of character data. A character expression can be a constant, a variable, or a column of character or binary data.

    start is an integer value that specifies where deletion and insertion begin. If start or length is negative, an empty string is returned. If start is longer than the first character expression, an empty string is returned.

    length

    is an integer that specifies the number of characters to remove. If the length is longer than the first character expression, up to the last character in the last character expression is removed.

    Return type. If character expression is a supported character data type, character data is returned. If character expression is a supported binary data type, binary data is returned.

    Exegesis. String functions can be nested.

    Example. The following example creates and returns a string by removing the three characters starting at the second position (character b) in the first string (abcdef), and then inserting the second string at the beginning of the deletion.

    select stuff('abcdef', 2, 3, 'ijklmn')

    Here's the result set:

    aijklmnef

    1 row(s) affected)

  2. Anonymous users2024-02-04

    delete from tablename where address !='Fukuda'

    Change the above statement tablename to your surface.

  3. Anonymous users2024-02-03

    Use the following statement:

    select * from table where','&txt&',' like ',9,'

    I'm assuming that the & represents a string join, and some databases use +, and some use it. , some use ||You check your database manual.

  4. Anonymous users2024-02-02

    Using regular expressions, will.

    ?!Built).*

    Replace all with empty.

    And then again. ]+

    Replace all with empty.

  5. Anonymous users2024-02-01

    Let's talk about this suspicious IP first, which is said to be a mentally retarded spider, God bless it to hell.

    Friends who have read the Apache log should know that each line of the Apache access log starts with the visitor's IP. Because the logs are relatively large, I used ultraedit to look at them. When using Ultraedit, you need to pay attention to the fact that there are two kinds of regular rules, one is in line with the Perl specification, and the default is the one that comes with the ut, and the writing method is more special.

    After some thought, I found that there seems to be no way to directly delete the usage of "does not contain" a specified string in the regular expression. After thinking about it, let's write a line that contains a specified string: (To test, you can find out the lines that contain the specified IP, and the next thing to do is how to keep these lines and delete the other lines.)

    After n attempts, I finally gave up on the idea of directly deleting lines that didn't contain this IP. What to do? Take a step back and open the sky!

    Since you can't delete it directly, let's take a detour. Although I can't directly delete a line that doesn't contain the specified string, I can still write it if I delete the regex that doesn't contain the specified character.

  6. Anonymous users2024-01-31

    1. For example, to delete all the rows in the following image that contain [OneNote].

    2. Enter a few words in the empty cell above ** first, and add a blank line if there is no empty cell.

    3. Click [Filter] in the Excel2010 Start tab [Sort and Filter].

    4. At this time, a button will appear on the right side of the cell at the top of the selection range. Click that button.

    5. Enter the specified text in the text filter of the pop-up dialog box, i.e. [onenote]. Click the OK button.

    6. Hold down the left mouse button and drag the mouse at the line number containing [OneNote] to select the lines.

  7. Anonymous users2024-01-30

    This is done using the Find function in conjunction with the delete function.

    Excel version reference: 2010

    Test: Remove rows containing 6.

    1. Ctrl+F to bring up the search dialog.

    2. Find and enter: *6*, click to find all.

    3. Press Ctrl+A, right-click any cell in the selected row 4, Delete - whole row, OK.

    5. Check the effect.

  8. Anonymous users2024-01-29

    Use the filter function: Select the column and menu "Data" = > "Filter" = > "Auto Filter".

    A small triangular arrow appears in the bottom right corner of the first cell of the column, click on this arrow, the drop-down filter option appears, select The Thread'win32 thread', all values are the thread'win32 thread'Select these cells, right-click, select "Delete Row", then click the filter arrow, select "All", and get the result.

  9. Anonymous users2024-01-28

    -- oracle

    update table set column = replace (column,'Jin',''Where column like'Jin'

    or update table set column ='Jin' ||Column where column not like'Jin'

    mysql

    update table set column = replace (column,'Jin',''Where column like'Jin'

    or update table set column = concat('Jin'Column where column not like'Jin'

    sqlserver

    update table set column = replace (column,'Jin',''Where column like'Jin'

    or update table set column ='Jin'Column where column not like'Jin'

  10. Anonymous users2024-01-27

    Use automatic filtering, in "Custom", select "does not contain", and then enter "s", after confirmation, all data that does not contain s will be filtered out, and you can delete it.

  11. Anonymous users2024-01-26

    Find ss, find all, then the search results will be listed under the search box, use shift combined with the mouse to select the search results, close the search dialog, delete, the whole row.

  12. Anonymous users2024-01-25

    With Find Replace, replace the following: *ss* with blank.

  13. Anonymous users2024-01-24

    1. Use search to find all the inclusions? and then fill it with a color.

    2. Then find the format (select None), and then delete the found cells.

  14. Anonymous users2024-01-23

    In the b2 input formula drop-down, first put metal stamp... Extract it to column B, copy and paste it into column A, and then delete column B.

    mid(a2,find("metal stamp",a2),if(iserr(find(char(10),a2,find("metal stamp",a2))-find("metal stamp",a2)),50,find(char(10),a2,find("metal stamp",a2))-find("metal stamp",a2)))

    If the metal stamp is fixed with 3 bits, such as 18k 99k 66k 27k and other 3 bits, the formula is reduced as follows:

    mid(a2,find("metal stamp",a2),15)

  15. Anonymous users2024-01-22

    b1 Enter the following formula:

    if(substitute(a1,"metal stamp","")=a1,"",substitute(a1,a1,mid(a1,find("metal stamp",a1),find("k",a1,find("metal stamp",a1))-find("metal stamp",a1)+1)))) drop-down.

  16. Anonymous users2024-01-21

    Filter with -> text - > not included.

    Enter keywords and delete all the filtered rows.

Related questions
9 answers2024-02-09

This problem is not operated in linux, you delete linux, how to use your machine without a system? >>>More

6 answers2024-02-09

It's probably because when you install some software, there is a Google prompt that it is installed by default, and you didn't cancel it, so you installed Google's plugin. This plugin is maliciously attacked. >>>More

16 answers2024-02-09

** Rules for Free (Regular) Numbers:

1. 3 days after registration, the number that has not logged in and has not added friends may be **. >>>More

4 answers2024-02-09

Pro: When you delete a backup in Windows Server Backup, you may encounter various errors. Here are some common errors and workarounds:1 >>>More

10 answers2024-02-09

The uninstallation of the input method is more troublesome,So I generally only use the intelligent ABC input method that comes with the system,I think ordinary people can apply it completely。 >>>More