Build Your Own DatabaseDriven Website Using PHP amp;amp; MySQL [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Build Your Own DatabaseDriven Website Using PHP amp;amp; MySQL [Electronic resources] - نسخه متنی

Kevin Yank

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید








Deleting Stored Data

The deletion of entries in SQL is dangerously easy, which, if you haven't
noticed yet, is a recurring theme. Here's the command syntax:


mysql>DELETE FROM table_name WHERE conditons;

So to delete all chicken jokes from your table, you'd use the following
query:


mysql>DELETE FROM Jokes WHERE JokeText LIKE "%chicken%";

One thing to note is that the WHERE clause is actually
optional. You should be very careful, however, if you leave it off, as the DELETE command
will then apply to all entries in the table. This command will empty the Jokes table in one fell swoop:


mysql>DELETE FROM Jokes;

Scary, huh?

/ 190