userID='0010000 182006062311314 755253856038515 2'
sql='select * from usagestatistics where userID='+'\''+u serID+'\''
this command couldn't work.
the error is:
Traceback (most recent call last):
File "userage.py ", line 13, in ?
rs.Open('['+sql+']',conn,1,3) #1和3是常数.代表adOpe nKeyset 和adLockOptimist adLockOptimisti c
File "<COMObject ADODB.Recordset >", line 4, in Open
pywintypes.com_ error: (-2147352567, 'Exception occurred.', (0, 'Microsoft JET Database Engine', "Invalid SQL statement; expected 'DELETE', 'INSERT', 'PROCEDURE', 'SELECT', or 'UPDATE'.", None, 5003129, -2147217900), None)
but if the userID is '75525385603851 52' ,my program works successfully
do you know why?
0 1348 Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Lukas Bradley |
last post by:
Using MySQL 4.0.12, is there a way to specify significant digits for a
mathematical operation within a SELECT? In other words, the query "select
5/213" defaults to two significant digits (0.02) for the result.
How can I specify the result attributes within a SELECT?
Lukas
|
by: Ingo Nolden |
last post by:
Hello,
I want to format floats ( doubles ) into small strings of 7 characters.
I tried to use std::ostream, but I don't get the desired behaviour.
Especially in scientific notation I am not comfortable with things like
e+007. This is wasting 2 digits for the two zeros.
I didn't try boost::format, because it doesn't seem to me it will...
|
by: BlueDragon |
last post by:
Grrr!
I'm trying to run a script:
print 'Declaring cursor'
declare cInv cursor forward_only static for
select
distinct
inv.company,
inv.contact,
inv.address1,
inv.city,
|
by: Nicolae Fieraru |
last post by:
Hi All,
I have some javascript code and I try to filter out any characters (which
are not digits or delete) from an input element in a form.
Here is the code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
|
by: James Foreman |
last post by:
I'm using DB2 UDB 8.1.2 on Suse linux. Try this:
CREATE TABLE testsums (cost_of_sale decimal(7,2), price decimal(9,
2));
INSERT INTO testsums VALUES (10000, 30000);
SELECT cost_of_sale/price AS division1 FROM testsums;
SELECT sum(cost_of_sale)/sum(price) AS division2 FROM testsums;
The first select gives 0.333333333333333333333333
The...
| |
by: bughunter |
last post by:
I discover next problem
I have view definition with rank()
create view vTEST as
select c1, c2, c3, ...
-- problem area start
, rank() over (order by c3) as RNK
-- problem area stop
from table
|
by: jinling |
last post by:
userID='00100001820060623113147552538560385152'
sql='select * from usagestatistics where userID='+'\''+userID+'\''
this command couldn't work.
the error is:
Traceback (most recent call last):
File "userage.py", line 13, in ?
rs.Open('',conn,1,3) #1和3是常数.代表adOpenKeyset 和adLockOptimistadLockOptimistic
File "<COMObject...
|
by: jmcgill |
last post by:
Hello.
Is there a method for computing the number of digits, in a given numeric
base, of N factorial, without actually computing the factorial?
For example, 8! has 5 digits in base 10; 10! has 7 digits in base 10.
Is there a way to compute that information without actually evaluating
the factorial?
|
by: Simon Gare |
last post by:
Hi,
trying to retrieve postal codes from the db but only want the query to look
at the first 3 digits of the code tried using
(LEFT(dbo.booking_form.COLL_POST_CODE),3) but that doesn't work. I don't
want the query to count individual post codes but instead look at an area
found in the first 3 digits e.g. HA0 3TD is for a particular house...
|
by: =?ISO-8859-1?Q?Lasse_V=E5gs=E6ther_Karlsen?= |
last post by:
I get the above error in some of the ASP.NET web applications on a
server, and I need some help figuring out how to deal with it.
This is a rather long post, and I hope I have enough details that
someone who bothers to read all of it have some pointers.
Note, I have posted the stack trace and the code exhibiting the problem
further down...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
| |
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| | |