Home > Back-end >  For a great god
For a great god

Time:09-26



When click submit to send the information in the edit1 to the server and inserted into the database


I wrote a lot of methods are not great god send a code that can be used to show my thanks

CodePudding user response:

Two steps, first, how do you sent to the server (sokcet, HTTP, etc.), the first clear
If you connect directly to the database, then use adoconnection connection, adoquery to submit data

CodePudding user response:

The teacher can give me a contact way? Can I ask you some questions?

CodePudding user response:

You is DataSnap server connection way or the other,

On the server side, if it is DataSnap be established through SQL accept upload data method,

In this way, the client can pass this method is called, upload the data to the table, such as: DataModule1. SocketConnection1. AppServer. MyQuery (SQL, err);

CodePudding user response:

In BeforePost assignment

CodePudding user response:

If just insert the information in the edit1 database,
Use the TADOQuery, joining together the simplest SQL statements,

However, I see you stick figure,
Suppose you want to according to the results in the DBGrid,
If so, you have to TADOQuery using a simple SQL Select statement,
Such as SELECT * from TableName where 1 & lt;> 1
In order to obtain an empty data set,
Then, use the TADOQuery append, post to insert database,

  • Related