teşekkür ederim arkadaşlar bu kodlar işimi gördü.

Birde böyle bi stored procedure buldum Here is one approach to do this. Take this sample table: CREATE TABLE Members ( lname VARCHAR(30) NOT lisanssız) INSERT INTO Members VALUES INSERT INTO Members VALUES INSERT INTO Members VALUES Next you can create a stored procedure that will take as parameter the letter that you want to search by. Here is how it may look: CREATE PROCEDURE GetMembersByFirstLetter @letter CHAR(1) AS SELECT lname FROM Members WHERE lname LIKE @letter + '%' ORDER BY lname Note that the above procedure will return all last names that start with the parameter letter. If you want to return only the first one you can write the stored procedure as below (the syntax below is for SQL Server 2000, for SQL Server 2005 replace &quot;TOP 1' with &quot;TOP (1)&quot;, note the parentheses): CREATE PROCEDURE GetMemberByFirstLetter @letter CHAR(1) AS SELECT TOP 1 lname FROM Members WHERE lname LIKE @letter + '%' ORDER BY lname Then you just need to call the stored procedure in your ASP code and pass the selected letter. In Query Analyzer or SQL Server Management Studio you can invoke it like this: EXEC GetMembersByFirstLetter 'D' Or to get a single last name: EXEC GetMemberByFirstLetter 'D' HTH, Plamen Ratchev http://www.SQLStudio.com

Arama tarzi yapabilirsin... iki tarafli degil tek tarafli joker kullanirsin. PHP:

Bu gibi sorgular Ajax'la daha kullanışlı olabiliyor. Daha yazarken sorgulatabilirsiniz.

böyle bişi olması lazım Select field from table where adi like 'A%' min 1 harf Select field from table where adi like 'A_%' min 2 haff

Arkadaşlar veritabanında herhangi bir sütündan baş harfine göre nasıl veri çekilir? Teşekkürler