---
title: "SQL sats"
type: "forum-thread"
url: "https://www.webforum.nu/amne/databaser-sql/45353-sql-sats"
topic: "Databaser & SQL"
topic_url: "https://www.webforum.nu/amne/databaser-sql"
author: "Pellefant"
published: "2002-06-06T14:03:05.000Z"
updated: "2002-06-06T14:16:01.000Z"
replies: 2
views: 164
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/databaser-sql/45353-sql-sats"
---

# SQL sats

## #1 — Pellefant, 2002-06-06T14:03Z

Hej hopp!

Försöker få en SQL sats att fungera.

ord= Request.QueryString("ord") 

SQL  = "SELECT \* FROM table1 WHERE Receptnamn LIKE = '%" & ord & "%' ORDER BY Receptnamn"	

Felmed:
\[Microsoft\]\[ODBC Microsoft Access Driver\] Syntax error (missing operator) in query expression 'receptnamn LIKE = '%d%''. 

Pellefant

Permalänk: https://www.webforum.nu/p/45353

## #2 — LarsG, 2002-06-06T14:08Z

Tag bort = efter like

```
SQL = "SELECT * FROM table1 WHERE Receptnamn LIKE '%" & ord & "%' ORDER BY Receptnamn"
```

Permalänk: https://www.webforum.nu/p/690567

## #3 — Pellefant, 2002-06-06T14:16Z

Tack, fungerar jättebra.

Permalänk: https://www.webforum.nu/p/690573

---

Tråden på webben: https://www.webforum.nu/amne/databaser-sql/45353-sql-sats
