עבור לתוכן
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.

איך מציגים מידע מ - SQL DATA BASE על FORM ב C# ???

Featured Replies

פורסם

אני מצליח להציג את כל הטבלה דרך הפקד GRIDVIEW אבל אני לא מצליח להציג שורה אחת ספציפית דרך שאילתא ...


var query =
from a in db.Table1s
select a;
dataGridView1.DataSource = query;

השורה שהאחרוה מצוגה לי על הFORM את כל הטבלה ...

פורסם

אני לא מבין, מה זה ה-a הזה? בכלל לא מובנת לי השאילתא הזאת...

אם אתה רוצה להציג שורה ספציפית, השאילתא שלך צריכה להיראות משהו בסגנון הזה:

"select * from tbl where id = '666'"

במקרה הזה הוא יחזיר לך את כל השורות בטבלה שבהן בעמודה id יש את הערך 666

עריכה:

או, אם אתה רוצה להשתמש בערך כלשהו שבא ממשתנה, אז זה צריך להיראות משהו כזה:

"select * from tbl where userName = '" + userName + "'"

שים לב כי userName מוקף בגרש מכל צד, כמו ה-666 בדוגמא הקודמת (פשוט קשה לראות את זה בכלל הגרשיים הכפולים, אבל אם תשים לב, יש לו 3 גרשיים מכל צד בעצם)

פורסם

אם ככה, מתנצל

זה מה שקורה כשאני רגיל לעבוד עם framework 2.0...

צה"ל הזה, מתי כבר יעברו לוינדוס חדש מ-2000?

פורסם
  • מחבר

נכון, תודה שניצל ... זו שאילתא ב LINQ, בכל אופן תודה לשניכם, הצלחתי ...

ארכיון

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

דיונים חדשים

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.