Click here to Skip to main content
15,887,930 members
Home / Discussions / Database
   

Database

 
GeneralRe: Can't Insert data into Access Table from Python Pin
Victor Nijegorodov6-Dec-18 1:09
Victor Nijegorodov6-Dec-18 1:09 
Richard MacCutchan wrote:
The float built-in only takes a single parameter, you are passing two, so that code will fail. Also you have specified two values in your insert statement but you are trying to pass only one.

Hmmm...
It seems to me there are two values here:
Quote:
cur2.execute('INSERT INTO RawValues (Millitime, PowerCost) VALUES (?,?)',(float(row[0]),row[1]))

The first is
Quote:
float(row[0])
, the second -
Quote:
row[1]

GeneralRe: Can't Insert data into Access Table from Python Pin
Richard MacCutchan6-Dec-18 1:21
mveRichard MacCutchan6-Dec-18 1:21 
GeneralRe: Can't Insert data into Access Table from Python Pin
Peter R. Fletcher6-Dec-18 2:11
Peter R. Fletcher6-Dec-18 2:11 
GeneralRe: Can't Insert data into Access Table from Python Pin
Richard MacCutchan6-Dec-18 3:16
mveRichard MacCutchan6-Dec-18 3:16 
GeneralRe: Can't Insert data into Access Table from Python Pin
Peter R. Fletcher6-Dec-18 4:37
Peter R. Fletcher6-Dec-18 4:37 
GeneralRe: Can't Insert data into Access Table from Python Pin
Richard MacCutchan6-Dec-18 5:11
mveRichard MacCutchan6-Dec-18 5:11 
GeneralRe: Can't Insert data into Access Table from Python Pin
Richard MacCutchan8-Dec-18 4:46
mveRichard MacCutchan8-Dec-18 4:46 
GeneralRe: Can't Insert data into Access Table from Python Pin
Peter R. Fletcher8-Dec-18 5:04
Peter R. Fletcher8-Dec-18 5:04 
GeneralRe: Can't Insert data into Access Table from Python Pin
Richard MacCutchan8-Dec-18 5:58
mveRichard MacCutchan8-Dec-18 5:58 
GeneralRe: Can't Insert data into Access Table from Python Pin
Peter R. Fletcher8-Dec-18 7:36
Peter R. Fletcher8-Dec-18 7:36 
GeneralRe: Can't Insert data into Access Table from Python Pin
Mycroft Holmes8-Dec-18 11:52
professionalMycroft Holmes8-Dec-18 11:52 
GeneralRe: Can't Insert data into Access Table from Python Pin
Richard MacCutchan8-Dec-18 21:09
mveRichard MacCutchan8-Dec-18 21:09 
QuestionError reading data from SQL Server ? Pin
Member 24584673-Dec-18 22:25
Member 24584673-Dec-18 22:25 
AnswerRe: Error reading data from SQL Server ? Pin
ZurdoDev4-Dec-18 2:22
professionalZurdoDev4-Dec-18 2:22 
AnswerRe: Error reading data from SQL Server ? Pin
Eddy Vluggen4-Dec-18 2:55
professionalEddy Vluggen4-Dec-18 2:55 
GeneralRe: Error reading data from SQL Server ? Pin
Member 24584674-Dec-18 17:15
Member 24584674-Dec-18 17:15 
GeneralRe: Error reading data from SQL Server ? Pin
Eddy Vluggen5-Dec-18 1:44
professionalEddy Vluggen5-Dec-18 1:44 
GeneralRe: Error reading data from SQL Server ? Pin
Member 24584679-Dec-18 21:28
Member 24584679-Dec-18 21:28 
GeneralRe: Error reading data from SQL Server ? Pin
Eddy Vluggen9-Dec-18 23:27
professionalEddy Vluggen9-Dec-18 23:27 
SuggestionRe: Error reading data from SQL Server ? Pin
CHill6011-Dec-18 5:18
mveCHill6011-Dec-18 5:18 
QuestionAn error occurred while executing batch. Error message is: Exception of type 'System.OutOfMemoryException' was thrown Pin
simpledeveloper30-Nov-18 13:06
simpledeveloper30-Nov-18 13:06 
AnswerRe: An error occurred while executing batch. Error message is: Exception of type 'System.OutOfMemoryException' was thrown Pin
Richard MacCutchan30-Nov-18 22:29
mveRichard MacCutchan30-Nov-18 22:29 
AnswerRe: An error occurred while executing batch. Error message is: Exception of type 'System.OutOfMemoryException' was thrown Pin
ZurdoDev4-Dec-18 2:23
professionalZurdoDev4-Dec-18 2:23 
QuestionI am not able to Generate Scripts for a larger table Pin
simpledeveloper30-Nov-18 13:02
simpledeveloper30-Nov-18 13:02 
AnswerRe: I am not able to Generate Scripts for a larger table Pin
ZurdoDev4-Dec-18 2:24
professionalZurdoDev4-Dec-18 2:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.