שליחת פקודת SQL באמצעות המתודה ExecuteNonQuery

7 подписчиков

12+
12+

4 просмотра

22 дня назад

ПожаловатьсяНарушение авторских прав

7 подписчиков

12+
12+

4 просмотра

22 дня назад

ПожаловатьсяНарушение авторских прав
12+
12+

4 просмотра

22 дня назад

Sending Sql command by using ExecuteNonQuery method Отравление Sql command с помощью метода ExecuteNonQuery המתודה ExecuteNonQuery מבצעת פקודת SQL מול מסד נתונים ומחזירה את מספר השורות אשר הושפעו במסד הנתונים מפקודת ה-SQL. דבר זה מקנה לנו יכולת לקבל אינדיקציה לגבי תוצאות פקודות SQL המתבצעות במסד הנתונים. בקוד זה ניתן לראות הזנת לקוח חדש אל מסד הנתונים באמצעות קריאה למתודה SqlCommand.ExecuteNonQuery והדפסת תוצאת פקודת ה-SQL אל המשתמש. The ExecuteNonQuery executes SQL commands against the database and returns the number of the affected rows from the SQL command in the database.this feature enables us to get intication about the SQL command result in the database. In the next code we can inserting a new customer to a table in the database using the SqlCommand.ExecuteNonQuery method and print the SQL command result to the user. Блогодаря ExecuteNonQuery методу,мы можем получить результат SQL комманди в базе данных. В следующем коде,вы увидите добовление новых данных клиента в таблицу в базе данных с помощью SqlCommand.ExecuteNonQuery метода,и напечатание результата SQL комманди к клиенту.

Название:

שליחת פקודת SQL באמצעות המתודה ExecuteNonQuery

Категория:

Разное