LIMIT does not work in T-SQL. Use TOP instead:
SELECT TOP(1) * FROM tableEating WHERE person = '$identity';
As Aaron says, you also need an ORDER BY
if you don’t want to get an arbitrary row.
More Related Contents:
- SQL Query needed for fetch value from Two identical table but not fully identical table
- sql query to modify the selected value from database [closed]
- Calculate Average of the largest values in multiple columns
- Does SQL Server Offer Anything Like MySQL’s ON DUPLICATE KEY UPDATE
- Storing JSON in database vs. having a new column for each key
- MySQL LIMIT clause equivalent for SQL SERVER
- SQL: Repeat a result row multiple times, and number the rows
- How to export SQL Server database to MySQL? [duplicate]
- How do I decide when to use right joins/left joins or inner joins Or how to determine which table is on which side?
- How to transform a MSSQL CTE query to MySQL?
- Is there a Profiler equivalent for MySql? [closed]
- Why do results from a SQL query not come back in the order I expect?
- When to use SELECT … FOR UPDATE?
- Best practices for SQL varchar column length [closed]
- Relationship between catalog, schema, user, and database instance
- Import MySQL database into a SQL Server
- How to export data from SQL Server 2005 to MySQL [closed]
- What resources exist for Database performance-tuning? [closed]
- How to transpose rows to columns with large amount of the data in BigQuery/SQL?
- How to migrate SQL Server database to MySQL? [closed]
- how to cast the hexadecimal to varchar(datetime)?
- sql group by versus distinct
- How to import a SQL Server .bak file into MySQL?
- MySQL – Meaning of “PRIMARY KEY”, “UNIQUE KEY” and “KEY” when used together while creating a table
- Equivalent of MSSQL IDENTITY Column in MySQL
- Equivalent of MySQL ON DUPLICATE KEY UPDATE in Sql Server
- What are the max number of allowable parameters per database provider type?
- Why in SQL NULL can’t match with NULL?
- Convert SQL Server query to MySQL [duplicate]
- comparison of truncate vs delete in mysql/sqlserver [duplicate]