Jump to content

Recommended Posts

I have the following username in my database

[code]????s???????????????[/code]

However, I cant find where it is! And it wont appear in a search such as

[code]SELECT *
FROM `members`
`username` = "????s???????????????"
LIMIT 0 , 30[/code]

I have a feeling the '?' character is confusing MYSQL.

I need to find and delete that entry, any ideas how?
Link to comment
https://forums.phpfreaks.com/topic/29131-database-headache/
Share on other sites

Didnt return anything

Basically what im trying to do, is convert a field from ascii_binary to ascii_general so that it is not case sensitive

However, to acheieve that, their cant be any duplicate usernames

When I try and change it to ascii_general it tells me that their is a duplicate entry of that username with all the question marks

[code]SQL query:

ALTER TABLE `members` CHANGE `username` `username` VARCHAR( 20 ) CHARACTER SET armscii8 COLLATE armscii8_general_ci NOT NULL

MySQL said: Documentation
#1062 - Duplicate entry '????s???????????????' for key 2 [/code]

really stuck
Link to comment
https://forums.phpfreaks.com/topic/29131-database-headache/#findComment-133564
Share on other sites

Nope, that just returned 19 pages of 30 rows, checked through each manually and it wasnt their

This is a nightmare.

Surely their must be a more straight forward way to convert from Binary to Ascii... on a field that is unique

Is their any way to force it and delete any duplicates it finds
Link to comment
https://forums.phpfreaks.com/topic/29131-database-headache/#findComment-134505
Share on other sites

Sorted !!

The question marks where not actually question marks

They where just being shown on screen as question marks because of the charset

I did this to narrow the search results

Try WHERE username LIKE '____s___________%'

And it came up fine

Now converted

Thanks guys!
Link to comment
https://forums.phpfreaks.com/topic/29131-database-headache/#findComment-134520
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.