Du befindest Dich im Archiv vom ABAKUS Online Marketing Forum. Hier kannst Du Dich für das Forum mit den aktuellen Beiträgen registrieren.

SELECT Statement spinnt? MS Access

Ajax, Hijax, Microformats, RDF, Markup, HTML, PHP, CSS, MySQL, htaccess, robots.txt, CGI, Java, Javascript usw.
Beloe007
PostRank 10
PostRank 10
Beiträge: 2928
Registriert: 05.03.2009, 10:31

Beitrag von Beloe007 » 25.08.2010, 20:48

Einer
https://stackoverflow.com/questions/543 ... 40#2336940
und ein anderer
https://stackoverflow.com/questions/543 ... 593#543593

und noch einer:
This answer is terrible. LIKE and '=' are completely distinct operators, but just happen to behave similarly in some small subset of cases. For the sake of posterity, please read the rest of the replies here, or at least google for "mysql like" before you commit this to memory. – mehaase Jun 2 at 10:41
...aber wird mir jetzt zu viel.

Ich habe meines gesagt, ich habe davon keine Ahnung... weiß nur was mir mal jemand mit viel Ahnung gesagt hat.

Ich muss hier keine Quellen suchen, habe kein Problem, ich muss mir das eh mal abgewöhnen kostet zu viel Zeit die guten Beiträge zwischen dem ganzen veralteten und weiterverbreiteten Müll im Internet zu finden.

Und auch MySQL hat sich weiterentwickelt ;)

Anzeige von ABAKUS

von Anzeige von ABAKUS »

Content Erstellung von ABAKUS Internet Marketing
Ihre Vorteile:
  • einzigartige Texte
  • suchmaschinenoptimierte Inhalte
  • eine sinnvolle Content-Strategie
  • Beratung und Umsetzung
Jetzt anfragen: 0511 / 300325-0

Beloe007
PostRank 10
PostRank 10
Beiträge: 2928
Registriert: 05.03.2009, 10:31

Beitrag von Beloe007 » 25.08.2010, 21:02

PS damit zumindest das Wesentliche für den Thread gequotet ist:
EQUALS compares two pieces of data byte by byte. This means that equivalent strings in different encodings may not be equal, even though they look the same to the eye.

LIKE compares strings, and it takes into account the encoding of each string so as not to be fooled by different encodings of the same content.

Anonymous

Beitrag von Anonymous » 25.08.2010, 21:23

Beloe007 hat geschrieben:PS damit zumindest das Wesentliche für den Thread gequotet ist:
hmm... nur das genau das nun hier nix zur Sache tut... weil ja schon gesagt wurde das es keine Sonderzeichen gibt die je nach encoding anders sein könnten...

und bezüglich der performance hattest du ja bereits selber einen Link mit Vergleichen gepostet: https://myitforum.com/cs2/blogs/jnelson ... 08354.aspx

und wenn du dir dort die Unterschiede zwischen = und LIKE bei einem Wort ohne wildcards anschaust ist das schon ein netter Unterschied...

mit = sind es 0,0065704 und mit LIKE eben 0,0083908

also mit LIKE dauert es fast 28% länger...