Hi all, my question is simple but i cant fin de answer. Is there a way to set in Lucene to retrieve an amount of results higher than 100 in a query?
Im using lucene 2.4.0 now.
Thanks all.
database = new OleDbConnection(connectionString);
database.Open();
date = DateTime.Now.ToShortDateString();
string queryString = "SELECT SUM(skupaj_kalorij)as Skupaj_Kalorij "
+ "FROM (obroki_save LEFT JOIN users ON obroki_save.ID_uporabnika=users.ID)"
+ "WHERE users.ID= " + a.ToString()+" AND obroki_save.datum= " +DateTime.Today.ToShortDateString();
loadDataGrid2(queryString);
I get an error,when i wan't to select the result. Why?
I am trying to query all post that are made to the wall of a facebook event. But am not making any headway. Is this at all possible. How would you proceed? Create a multiquery FQL statement?
So I already have a database setup with a few columns and a few rows already inserted in. I'm trying to create a view that you would just input information into a form and press Submit, then a row would be added to the MySQL database with the information you just typed in.
I believe you can do this with admin, but I would like to try without admin and I'm not sure if this is possible? I've been using the MySQL commandline to add rows as of now..
I have to create an SQL Query to get all rows starting with a specific character, except if the parameter passed to the (PHP) function is 0, in that case it should get every row that does not start with A - Z (like #0-9.,$ etc).
What is the easiest and fastest way to get those rows?
DB: MySQL 5.1
Column: title
MY scenario is... I have 6,000 datas in Excel Sheet.. I try to import to Access Database.It enters the Database like this..
UNit Price 34512.00 Vat 4.00
BUt when i Retrieve to DataGridColumn it Shows vat Rate as 4(whole number).I accept zeros has no values..But I need that to be displayed in Grid as 4.0 . How to achieve this
Hello Friends,
I executed this query on my MySql Server and it is giving me "MySQL server has gone away" Error.In following query my both table have more then 1000000 rows.
SELECT a_tab_11_10.url as url,a_tab_11_10.c5 as 't1',a_tab_12_10.c3 as 't2'
FROM a_tab_11_10 join a_tab_12_10 on (a_tab_11_10.url)=(a_tab_12_10.url)
order by (a_tab_11_10.c5-a_tab_12_10.c3) desc limit 10
here is my log file but i am not getting it.
Thank you @Faisal for answer and i check my log file but i am not getting it..
110111 10:19:50 [Note] Plugin 'FEDERATED' is disabled.
110111 10:19:51 InnoDB: Started; log sequence number 0 945537221
110111 10:19:51 [Note] Event Scheduler: Loaded 0 events
110111 10:19:51 [Note] wampmysqld: ready for connections. Version: '5.1.36-community-log' socket: '' port: 3306 MySQL Community Server (GPL)
110111 12:35:42 [Note] wampmysqld: Normal shutdown
110111 12:35:43 [Note] Event Scheduler: Purging the queue. 0 events
110111 12:35:43 InnoDB: Starting shutdown...
110111 12:35:45 InnoDB: Shutdown completed; log sequence number 0 945538624
110111 12:35:45 [Warning] Forcing shutdown of 1 plugins
110111 12:35:45 [Note] wampmysqld: Shutdown complete
110111 12:36:39 [Note] Plugin 'FEDERATED' is disabled.
110111 12:36:40 InnoDB: Started; log sequence number 0 945538624
110111 12:36:40 [Note] Event Scheduler: Loaded 0 events
110111 12:36:40 [Note] wampmysqld: ready for connections. Version: '5.1.36-community-log' socket: '' port: 3306 MySQL Community Server (GPL)
110111 12:36:40 [Note] wampmysqld: Normal shutdown
110111 12:36:40 [Note] Event Scheduler: Purging the queue. 0 events
110111 12:36:40 InnoDB: Starting shutdown...
110111 12:36:42 InnoDB: Shutdown completed; log sequence number 0 945538634
110111 12:36:42 [Warning] Forcing shutdown of 1 plugins
110111 12:36:42 [Note] wampmysqld: Shutdown complete
110111 12:36:52 [Note] Plugin 'FEDERATED' is disabled.
110111 12:36:52 InnoDB: Started; log sequence number 0 945538634
110111 12:36:52 [Note] Event Scheduler: Loaded 0 events
110111 12:36:52 [Note] wampmysqld: ready for connections. Version: '5.1.36-community-log' socket: '' port: 3306 MySQL Community Server (GPL)
110111 12:37:42 [Note] wampmysqld: Normal shutdown
110111 12:37:42 [Note] Event Scheduler: Purging the queue. 0 events
110111 12:37:42 InnoDB: Starting shutdown...
110111 12:37:43 InnoDB: Shutdown completed; log sequence number 0 945538634
110111 12:37:43 [Warning] Forcing shutdown of 1 plugins
110111 12:37:43 [Note] wampmysqld: Shutdown complete
110111 12:37:46 [Note] Plugin 'FEDERATED' is disabled.
110111 12:37:46 InnoDB: Started; log sequence number 0 945538634
110111 12:37:46 [Note] Event Scheduler: Loaded 0 events
110111 12:37:46 [Note] wampmysqld: ready for connections. Version: '5.1.36-community-log'
socket: '' port: 3306 MySQL Community Server (GPL)
I recently encountered a problem in my production database due to MySQL bug. The bug is in the TimeStamp column. To avoid any inconvenience, I want to migrate the database to either Sql Server.
Is there any FREE tool to easily and reliably migrate data and table structures?
Hi All,
I am planing to add search feature in my web application. Now the items that will be searched are strored in a Relational database. In order to achieve a full text search engine I have following doubts :
For database based search engine should I use just lucene or some other utility based on Luncene like Solr, luSql, Compass etc.
In case of Solr, can it be embeded in to the web applcation rather than deploying it as a seaparate WAR.
Thanks for your time.
regards
Say you've got the following query on 9i:
SELECT /*+ USE_HASH(t2 t3) */
* FROM
table1 t1 -- this has lots of rows
LEFT JOIN table2 t2 ON t1.col1 = t2.col1
AND t1.col2 = t2.col2
LEFT JOIN table3 t3 ON t1.col1 = t3.col1
AND t1.col2 = t3.col2
Due to 9i not having RIGHT OUTER HASH JOIN, it needs to hash table1 for both joins. Does it re-hash table1 between joining t2 and t3 (even though it's using the same join columns), or does it keep the same hash information for both joins?
I want to use a database which name is stored in a variable. How do I do this?
I first thought this would work but it doesn't:
exec('use '+@db)
That will not change database context
Suggestions anyone?
I've got a table (col1, col2, ...) with an index on (col1, col2, ...). The table has got millions of rows in it, and I want to run a query:
SELECT col1, COUNT(col2) WHERE col1 NOT IN (<couple of exclusions>) GROUP BY col1
Unfortunately, this is resulting in a full table scan of the table, which takes upwards of a minute. Is there any way of getting oracle to use the index on the columns to return the results much faster?
Hi all,
Any idea on how to order the results of a MYSQL query by the sum of two columns rather than by a single column?
Select * FROM table ORDER BY (col1+col2) desc
I know that won't work., but I hope it conveys what I want to do fairly well.
Thanks!
I am developing a vb.net application in SQL server 2005 ,now i would like to import MS access database tables from a network into sql server 2005 database, using stored procedure or vb.net code without using SQL server 2005 Wizard . please find a sollution thanks a lot.
Are there any good database abstraction layers/object relational mappers/ActiveRecord implementations/whatever they are called for Android? I'm aware that db4o is officially supported, but it has quite a large footprint and I'd rather use a more conventional database (SQLite).
i created a small application using c# winforms that uses mssql as a database.
is there a way to attach the database to the exe file so i won't need to install sqlserver on all the machines that i want to run the program on?
Hi, I have a simple application in C# (Visual Studio 2005) that display a Crystal Reports report (Crystal Reports X1 R2). When I compiled the application it appears the following message: The report you requested requires further information. I want to set the connection info in the code so the application doesn't ask the user for the database password. It's a Oracle database.
Hi,
I am developing an ASP.NET website. I wanted to shift whole of my work to another PC of mine. I copied the website to the other PCOpenCreate ASP.NET folderApp_Data
and pasted the database.mdf and database.ldf files there. I was getting some exception when I was trying to run the website as it showed the "could not open the connection from con.open()". Is there some other step too that I am missing?
i have a problem in inserting the listbox value into mysql database in vb 2008 i.e
if i select a video file i.e D:\videos\video1.mpg and add a msgbox() event before inserting into data base it shows the exact path i.e D:\videos\video1.mpg but when i check my database it shows me as D:videosvideo1.mpg how can i solve that
I'm writing a tool to gather customer configuration information. One of the questions I want to answer, what OS is the customer database running on.
I haven't found a generic way to find the OS with SQL and I can't create stored procedures on the customer's database.
If there is a way, it's probably vendor specific.
Suggestions? Thanks in advance.
I'm interested to find out which ORM has best support for Postgres SQL database? Does any mapper have, both, LINQ support and ability to generate model from database?
Hello,
How can i generate database diagrams from my database automatically in mysql? I saw mysql workbench and it's very nice except for the fact that it doesn't allow me to copy the diagrams to clipboard and save it in MS Word. Please help.
Thanks in advance :)
I am running Symfony 1.3.2 on Ubuntu. I need to write a batch script that can:
Access the database using the ORM
Send email(s)
IIRC, this was in a previous cookback, but I thing that was for an earlier version of Symfony (the API may have changed since).
Does anyone know how I may access the database via the ORM layer in a batch script and also how to send out email(s) in a batch script?
I intend to have multiple Rails apps each for site.com, api.site.com, admin.site.com. All apps will access the same tables from one single MySQL database. Apps and database runs in the same server.
Is there any settings in Rails, ActiveRecord or MySQL that I need to be concerned about for above access scenerio? Thanks
Running: Rails 2.3.5, MySQL 5.0, Nginx, Passenger, RubyEE