17.07.2007
|
#11 (permalink)
|
Üyelik Tarihi: 07.10.2002
Yer: İstanbul
Yaş: 26
Mesaj: 986
|
Re: mysqlda hata yardım
Alıntı:
emir01 tarafından gönderilen mesaj:
oscommerce posta yönetiminde u hatayı alıyorum
nasıl düzeltebilirim
1064 - 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 '-20, 20' at line 1
select newsletters_id, title, length(content) as content_length, module, date_added, date_sent, status, locked from newsletters order by date_added desc limit -20, 20
|
Limit'i -20'den nasıl başlatıyoruz? 0 veya 0'dan büyük olması gerekir
Alıntı:
The LIMIT clause can be used to constrain the number of rows returned by the SELECT statement. LIMIT takes one or two numeric arguments, which must both be non-negative integer constants (except when using prepared statements).
With two arguments, the first argument specifies the offset of the first row to return, and the second specifies the maximum number of rows to return. The offset of the initial row is 0 (not 1):
SELECT * FROM tbl LIMIT 5,10; # Retrieve rows 6-15
|
|
|
|