Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [MYSQL] błąd w zapytaniu
Forum PHP.pl > Forum > Przedszkole
stirith
Co jest źle w zapytaniu :

Kod
$query = "SELECT * FROM id WHERE key != key_f";



(tabeli id, są 2 kolumny key i key_f)

wyskakuje błąd

Cytat
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'key != key_f' at line 1
nospor
mysql nie ma !=
jest za to <>
stirith
ten sam blad

Cytat
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'key <> key_f' at line 1
nospor
key jest slowem zastrzezonym
  1. SELECT * FROM id WHERE `key` <> key_f
stirith
co to znaczy zastrzeżonym ?
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.