עבור לתוכן
View in the app

A better way to browse. Learn more.

HWzone

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

mysql, מדוע אני מקבל את הודעת השגיאה הזו?!

Featured Replies

פורסם

שלום,

בסך הכל רציתי להוסיף עמודה לטבלה ! להלן הקוד:

<?php$con=mysqli_connect("localhost","root","root4qpines","tigbur");// Check connectionif (mysqli_connect_errno())  {  echo "Failed to connect to MySQL: " . mysqli_connect_error();  }  else  {  echo "Connecting to server Localhost succeeded !!! ";}// Add column
$sql="ALTER TABLE june2013 ADD time_interval (DECIMAL(5,2))";if (mysqli_query($con,$sql)) { echo "Column added successfully"; }else { echo "Error creating database: " . mysqli_error($con); } mysqli_close($con); ?>

המשימה לא צלחה בידי וקיבלתי הודעת שגיאה בזו הלשון:

Connecting to server Localhost succeeded !!! Error creating database: 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 '(DECIMAL(5,2))' at line 1

מישהו יואיל בבקשה לחלץ אותי מזה?

תודה !

פורסם

אתה מנסה להכניס מידע בשאילתה שמתאימה ל mysql 5.0 מול שרת בגרסא 5.1+

פורסם
  • מחבר

אכן, הסוגריים היו מיותרות. תודה למי שרצה לעזור לי.

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.