See questions based on SQL.
Hi once again, everything
I use Jdev 12.1.3. I have a SQL view opposed based on a rather complex SQL query in my ADF application.
This query has 5 parameters for which I created 5 bind variables.
(A) Comment can I fill these variables programmatically? I would like to take the information by other objects of my page (tables and forms). I have more or less clear how get the information of these objects, but not how to fill in the query parameters, and then how to run to update the ADF table which shows the contents of the SQL view.
(B) what is the best approach to automatically refresh this display object (table ADF)? In my page I have several tables cascading which are automatically updated thanks to their combination of keys etra (and set the behavior of the waterfall on the AppModule), but I don't know how to get similar behavior on my table in sql view. Let's say I can handle encapsulate the code to update my opinion in a method of bean (with the answer of A question), could I call this method from a few listener? I first of all on the selectionrowlistener, but my paintings have this listener already 'occupied' by the default.
Thanks for your help, sorry if I'm not quite clear on the description of my problem, I'm still a noob on ADF.
Marc
Hi user
Partial trigger helps refresh the UI component, but it applies to any operation
This requirement, you can override default selection of the Employee table listener
and in selectionListener, you can still call ExecuteWithParams using the OperationBinding class
See - http://www.awasthiashish.com/2013/01/invoke-adf-table-selection-listener.html
Give the floor to this listener of selection at the managed bean ExecuteWithParams the use of this
public BindingContainer {} getBindings()
Return BindingContext.getCurrent () .getCurrentBindingsEntry ();
}
OperationBinding operationBinding is getBindings () .getOperationBinding ("ExecuteWithParams");.
operationBinding.execute ();
information packet-
Import oracle.binding.BindingContainer;
Import oracle.binding.OperationBinding;
Import oracle.adf.model.BindingContext;
Thank you
Tags: Java
Similar Questions
-
When users working with an Application based on SQL (accounting), application closes without prompting.
We have virtual server Hyper-v with SQL server 2008 sp1 - other departments report no problem just for accounting
They can't really work...
Thank you
Hadad
These MS Answers forums are intended for the home rather than the it professional user. I suggest therefore that repost you your question in the forums MS Technet here:
http://social.technet.microsoft.com/Forums/en-us/categories/ .
(I'm sorry, but I can't move this thread for you because the two forums are working on separate platforms)
-
Firefox does not open or does not (see/questions/964132)
was Ok until recently
Please include more information, such as your operating system (Windows?) and the version, more exactly what is happening when you try to start Firefox. The information provided in a recent Firefox crash report, if any, can also help. See Firefox plant - troubleshoot and prevent assistance fixing crashes under help in setting this crash and post any crash report IDs recently (they start with bp - )
The title of your question, says "Firefox does not open or does not (see/questions/964132)" I have reviewed this issue and it was launched by another user of Firefox. /questions/964132? page = 2 # 477049 answer has a number of suggestions if Firefox does not start. Which have you tried?
To see other possible solutions
- Troubleshoot and diagnose problems in Firefox
- http://KB.mozillazine.org/Browser_will_not_start_up
- / issues/958850 Firefox does not open after a reboot
Note: A "clean and reinstall" was one of the suggestions/issues/964132. This means remove the Firefox application and then files by reinstalling Firefox since a new download, as explained at the stage of "Reinstall Firefox" in troubleshoot and diagnose problems in Firefox. So that allows you to start Firefox, but if the problem comes back after the computer restarts, you should make another "clean reinstall" and then resolve your plugins by disabling all, as suggested by the troubleshoot and diagnose problems of Firefox article.
-
total run time based on sql id?
Hello
I wrote under query to find out the total run time sql and total executions happened based on sql id for each date. Can you get it someone please let me know if the output below is correct?
SQL> SELECT trunc(begin_interval_time, 'DD'), ROUND(sum(elapsed_time_delta)/1000000) "Total Execution Time (sec)", ROUND(sum(executions_delta)) "Total Execution" FROM dba_hist_sqlstat a JOIN dba_hist_snapshot b ON a.snap_id = b.snap_id WHERE sql_id = '8acg09uq48jzk' AND executions_delta>0 GROUP BY trunc(begin_interval_time, 'DD') ORDER by trunc(begin_interval_time, 'DD') DESC; TRUNC(BEG Total Execution Time (sec) Total Execution --------- -------------------------- --------------- 01-AUG-14 160 122078 31-JUL-14 9309 1822147 30-JUL-14 6667 1845014 29-JUL-14 6196 1873091 28-JUL-14 277268 1517005 27-JUL-14 78546 794048 26-JUL-14 1359 1166650 25-JUL-14 7665 1826915 24-JUL-14 6786 1907862 23-JUL-14 8132 2019695 22-JUL-14 6611 1948861 TRUNC(BEG Total Execution Time (sec) Total Execution --------- -------------------------- --------------- 21-JUL-14 7980 2948449 20-JUL-14 3226 3554316 19-JUL-14 3405 3222148 18-JUL-14 10179 2478602 17-JUL-14 7950 1972643 16-JUL-14 8465 2054012 15-JUL-14 8483 2248688 14-JUL-14 8644 2243460 13-JUL-14 942 1478516 12-JUL-14 985 1075398
Generate AWR report during the period of interest and you will get more information.
Apart from that, what problem you ar trying to solve. Please explain that
You can also use the following, because you are looking for particular sql
awrsqrpt. SQL > for individual ssql
awrsqrpti. SQL > for sql on a particular instance... (useful in case of CARS)
Kind regards
Harman
-
I have a question about the most efficient way to perform the following task:
I create a page that contains several DVT components to display data based on specific requests. Top of page I am hoping to have a drop down menu (selectOneChoice) that contains dates different and based on what the user selects (i.e. 2010, 2011, 2012, 2013, etc.), this will update the query in the view object of some (i.s. WHERE Date = '2011', or WHERE Date = 2013"), and then you view the appropriate data in the DVT. What is the best way to do this - from a point of view bean managed / page, as well as the View object? Advice/documentation would be appreciated.
Thank you!
When you drag the vo executeWithParams one another that will create links for operations such as 'executeWithParams2', 'executeWithParams3 '. On the method that you use to update a view by calling the executeWithParams operation, you call the other operations too.
Timo
-
2 newbie question on Oracle SQL Developer
Hello world
I just started using SQL Developer (1.5.1), the question can seem easier (can not find FAQ...), any help will be appreciated.
1. How can I turn on result of the query grid, not clear?
2. How can I see the retail package compile error message in SQL Developer?
Thank you!
LeiHello
In fact, you can look at it SQL Dev demo.
1. run the query using F9 or CTRL + ENTER.
2 If you look on the underside of the SQL Dev, there is a dockable panel (Log - compiler tab) that shows you the warning message, error, etc.Kind regards
Buntoro
-
See questions about the Satellite A205-S5859
I would like to know the following:
1. is there a problem with the speakers of this first use. The volume deteriorates. You will need to set to 100.
2. can I put the car in a dedicated video video?
3. What is the maximum memory for this model? Where is the memory chip?
One of my friends has a laptop A200. It s not A205 but very similar. The A205 is designed for the American market and the A200 to the European market.
So finally, I can give you some suggestions on the issue:
(1) any volume questions are not known for me everything works ok.
(2) No, upgrading the graphics card is definitely not possible
(3) I guess you'll find this info in the user manual. Did you check that?
But I think that there is a possibility for an upgrade to 4 GB of RAM. But I do not recommend upgrading the RAM to 4 GB due to the limitation of the 32-bit operating system. All the 32-bit OS s can manage 3.2 GB RAM max.
Finally, the position of the slots memory; I think that it s at the bottom of the unit.See you soon
-
LabVIEW basics - Cahnging Boolean State question based on the input signal
Hi all
I would like the State to change the Boolean indicator based on a simulated sine wave signal. I have partially managed to do this but need help to develop it.
See the attached vi. At the present time changes Boolean false to true when the value of the signal is greater than 8 or lower than-8.
The focus I need is:
Once the signal passes more than 8 (and the Boolean value becomes true), I hope it becomes false again to a value of 9, but only after the peak value was passed or when the signal is down.
Similarly on the negative side of the graph, I want the Boolean value to become reality at 8-under, stay true until after the peak value was passed and then back to false when the value is greater than-9.
Any suggeastions?
Thank you
While Crossrulz responded, I had a little look.
Don't let me spoil your pleasure with the VI attached. Have a go yourself.
-
Journal inisght - question content pack SQL
Hello
Seems to me a mistake with happy pack SQL Log Insight.
Environment - Log Insight 2.5 (problem also on version 2.01), Windows Journal Insight client version 2.5, MS SQL 2008R2 and Server Windows 2012
in the log file, I came across this article:
2015-01-12 16:51:25.407580 0 x 00001414 < error > FLogCollector:1357 | Specification of missing or invalid directories.
2015-01-12 16:51:25.407580 0 x 00001414 < error > FLogCollector:207 | Invalid parameters were obtained for the channel "MSSQL." Channel < filelog | MSSQL > will remain inactive until this as correctly configured.
I have configured the MSSQL entry in the file liagent.ini as:
[filelog |] MSSQL]
Directory = Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Log
Charset = UTF-16
Am I missing something here, because it is according to the instructions on the market place?
I can see data are sent to the insight Journal, only it isn't linked :-(SQL
any help is very appreciated
Thank you
Harold
There is a typing error in the list, it must be small d for directory.
-
We have made from a 9i database to an 11 g database. The defined query works perfectly under 9i (about 1 second) but takes 60 to 70 seconds back to 11g. The strange thing is that it has an outer query and a subquery. If I remove the where clause of the outer query, it runs in less than a second. Here's the query...
SELECT the period, biweek_start, biweek_end, pay_period_complete, worker_count
FROM (SELECT to_char (en.start_date, ' dd/mm/yyyy') |) « à » ||
TO_CHAR (en.start_date + 13, ' dd/mm/yyyy') period.
en.start_date biweek_start,
en.start_date + biweek_end 13,
Decode (sign (sysdate - en.start_date - 13),
-1,
'Ongoing',
Pay_period_complete 'Done'),
ta_mssauth_pkg.actual_endorser (en.start_date, '33811') worker_count
FROM (select worker_id,
default_endorser resolved_endorser,
effective_date,
correspondents
of endorse_delegate_history_v
where default_endorser = '33811'
Union
Select worker_id,
temporary_delegate resolved_endorser,
effective_date,
correspondents
of endorse_delegate_history_v
where temporary_delegate = '33811'
and temporary_delegate is not null),
endorse_activity_v en
WHERE en.worker_id = de.worker_id
AND en.endorse_status = n
AND en.start_date < = de.expiration_date
AND en.start_date + 13 > = de.effective_date
GROUP BY en.start_date)
WHERE worker_count > 0;
The function that is used in the inner query to generate the worker_counts is quite complex. But it works subsecond if you run manually. And it works very well when you run the query without the "where worker_count > 0" part.
So the where clause of the outer query seems to be the cause of the problem - it is based on a function which should have calculated a value FIRST, and then the outer query must run depending on the result of the inner query. Here are the plans to explain to the two different versions:
BAD REQUEST - 60 to 70 seconds
Object owner name cardinality bytes cost object description
SELECT STATEMENT, GOAL = 41 1 617 ALL_ROWS
HASH GROUP BY 41 1 617
NESTED LOOPS
616 1 41 NESTED LOOPS
VIEW CA17062 58 186 4464
58 186 5392 SINGLE FATE
UNION-ALL
TABLE ACCESS BY INDEX ROWID TAS_AUTH ENDORSE_DELEGATE_HISTORY_TBL 42 139 4170
INDEX RANGE SCAN TAS_AUTH ENDORSE_DELEGATE_HIST_DEF_IDX 3 139
TABLE ACCESS BY INDEX ROWID TAS_AUTH 14 47 1222 ENDORSE_DELEGATE_HISTORY_TBL
INDEX RANGE SCAN 3 47 ENDORSE_DELEGATE_HIST_TEMP_IDX TAS_AUTH
INDEX RANGE SCAN TAS_AUTH 2 1 TA_SCLENDORSE_PKTABLE ACCESS BY INDEX ROWID 3 1 17 ENDORSE_ACTIVITY_TBL TAS_AUTH
GOOD QUESTION < 1 second
Object owner name cardinality bytes cost object description
SELECT STATEMENT, GOAL = 1025 25 617 ALL_ROWS
HASH GROUP BY 1025 25 617
NESTED LOOPS
616 25 1025 NESTED LOOPS
VIEW CA17062 58 186 4464
58 186 5392 SINGLE FATE
UNION-ALL
TABLE ACCESS BY INDEX ROWID TAS_AUTH ENDORSE_DELEGATE_HISTORY_TBL 42 139 4170
INDEX RANGE SCAN TAS_AUTH ENDORSE_DELEGATE_HIST_DEF_IDX 3 139
TABLE ACCESS BY INDEX ROWID TAS_AUTH 14 47 1222 ENDORSE_DELEGATE_HISTORY_TBL
INDEX RANGE SCAN 3 47 ENDORSE_DELEGATE_HIST_TEMP_IDX TAS_AUTH
INDEX RANGE SCAN TAS_AUTH 2 1 TA_SCLENDORSE_PK
TABLE ACCESS BY INDEX ROWID 3 1 17 ENDORSE_ACTIVITY_TBL TAS_AUTHIf these expleain plans look almost identical to me - can someone tell me why having where clause of the outer query is originally so wrong and how I can solve this problem? I tried using the NO_MERGE and PUSH_SUBQ - tips but nothing of what I did so wrong not better requested.
Thanks in advance!
Cory
You can also try taking advantage of the scalar subquery caching by changing
ta_mssauth_pkg.actual_endorser (en.start_date, '33811') worker_count
TO
worker_count (select ta_mssauth_pkg.actual_endorser (en.start_date, '33811') of double)
Which could cache the results for recent start dates, massively reducing the number of calls.
I think the NO_PUSH_PRED is a better approach, because the cache is less reliable to eliminate duplicate calls - it can cache the value, it could have thrown the corresponding value in the cache already, there is no guarantee of behavior and values the more en.start_date the request to meet the less reliable the caching will be.
-
Hi expert,
I have after sql statement, the function 'hiroc_get_delta_amount1' and 'hiroc_get_delta_amount2' are used separately in select and where subparagraph. These two functions are exactly the same, except that there is a log insert inside statement. for the 'hiroc_get_delta_amount1' function, newspapers are supposed to write the newspaper of table1, while for the function "hiroc_get_delta_amount2", newspapers are supposed to write the newspaper of table2. After you run this sql, I got the data loaded in the table2 newspaper, however, no data is loaded into newspaper table1.
could you please tell me why there is no data in table2 journal for function
1. sql statement;
Select
pp.policy_premium_pk,
pp.policy_fk,
pp.policy_term_fk,
pp.risk_fk,
pp.coverage_fk,
pp.transaction_log_fk,
pp.coverage_component_code,
hiroc_rpt_user.hiroc_get_delta_amount1 (pp.policy_fk, pp.policy_term_fk, pp.risk_fk, pp.coverage_fk, pp.transaction_log_fk, pp.coverage_component_code),
pp.rate_period_from_date
PRODBKUPDW_MART.rmv_policy_premium pp
where pp.rate_period_type_code = 'TERM_COVG. '
and pp.coverage_component_code <>'NETPREM '.
and hiroc_rpt_user.hiroc_get_delta_amount2 (pp.policy_fk, pp.policy_term_fk, pp.risk_fk, pp.coverage_fk, pp.transaction_log_fk, pp.coverage_component_code). = 0
Pp.policy_premium_pk group,
pp.policy_premium_pk,
pp.policy_fk,
pp.policy_term_fk,
pp.risk_fk,
pp.coverage_fk,
pp.transaction_log_fk,
pp.coverage_component_code,
pp.rate_period_from_date;
2. Insert the statement used for two functions of journal:
(1) function "hiroc_get_delta_amount1".
insert into HIROC_RPT_USER. Values of LOG_TEST1 (v_start, sysdate,
p_policy_fk, p_policy_term_history_fk, p_risk_fk, p_coverage_fk, p_transaction_log_fk, p_comp_code);
COMMIT;
(2) function "HIROC_GET_DELTA_AMOUNT_1".
insert into HIROC_RPT_USER. Values of LOG_ZB_TEST_1 (v_start, sysdate,
p_policy_fk, p_policy_term_history_fk, p_risk_fk, p_coverage_fk, p_transaction_log_fk, p_comp_code);
COMMIT;WRONG FORUM!
Welcome to the forum!
Unfortunately, you have posted on the SQL Developer forum which, as the title of the forum is NOT for questions of SQL and PL/SQL.
Please mark this thread ANSWERED and transfer your question in the forum SQL and PL/SQL
SQL and PL/SQLWhen repost you your question, you must provide the DDL for the two functions, not only a query in them. And unless these functions use the pragma AUTONOMOUS_TRANSACTION and VALIDATION and then inserts into a table 'log' what they do will be not permanent anyway.
You will also need to provide the number of rows that the SELECT query returns since if no line is activated, the first function cannot even be called.
Where this question: why are you recording of information in the context of a still SELECT query? What goal are you trying to achieve this returns the loss of performance you pay?
-
Cannot see the developer plus sql or sql table
I created a folder in the application designer. Then I built the table. I can close the file and then find it in the application designer. But if I go to sql plus and sql developer, I do not see it. Am I missing a step?You can probably see all the tables of the sysadm because someone else give you good grant for objects of this existing on sysadm.
For the purpose of new or modified (drop + create) you should:
1. log in as sysadm and rungrant select on new_table_name to your_own_user;
2. connect with your own user and run
create synonym new_table_name for sysadm.new_table_name;
Then you will be able to query this table without using schema name alias.
Some admin also have a ddl trigger to make it automatically.
You can also work with a role and a public synonym if more than one user needs access to the objects of sysadm.Nicolas.
-
Question based on LEAD with view.
HII friends,
I use a view in which I used the LEAD feature and I am faced with the question with the first record.
That's my opinion
DROP VIEW APPS. VW_TBL_TEST_1;
CREATE OR REPLACE STRENGTH SEEN APPS. () VW_TBL_TEST_1
OHR,
EFFECTIVE_START_DATE,
EFFECTIVE_END_DATE,
PREVIOUS_COE,
PREVIOUS_SDO,
PREVIOUS_PID,
PREVIOUS_BAND,
PREVIOUS_LOCATION,
PREVIOUS_COUNTRY,
PREVIOUS_DESIGNATION,
PREVIOUS_BUSINESS_FUNCTION,
RUN_DATE,
PRODUCT_LEVEL1,
PRODUCT_LEVEL2
)
AS
SELECT THE OFFICE OF THE HIGH REPRESENTATIVE,
NVL)
LEAD (EFFECTIVE_END_DATE)
COURSES (ORDER OF THE OHR, EFFECTIVE_START_DATE DESC)
+ 1,
EFFECTIVE_START_DATE
)
EFFECTIVE_START_DATE,
effective_end_date,
previous_coe,
OF XX_WORK_HIS;
and the output from this point of view of an employee is
OHR EFFECTIVE_START_DATE EFFECTIVE_END_DATE PREVIOUS_COE
103021253 1 May 10 - AC1
103021253 15 April 10-30 April 10 company s America
103021253 23 March 10-14 April 10 company s America
103021253 1 May 09-22 March 10 business s America
103021253 5 March 09-30 April 09 company s America
103021253 10 February 09 - 4 March 09 company s America
103021253 1 January 09 - 9 February 09 company s America
103021253 13 August 08-31 December 08 Creditek
103021253 1 January 08-12 August 08 Creditek LLC
103021253 13 April 07-31 December 07
103021253 1-sep-06-12 April 07
103021253 12 August 06-31 AUG 06
103021253 8 August 06-11 August 06
103021253 26 October 10 - 7 August 06
You can check in the last line of the effective Start date is 26 October 10 which is wrong, why it's I don't know.
If I run this directly from the query instead of view, I'm getting the correct record.
Query-
SELECT THE OFFICE OF THE HIGH REPRESENTATIVE,
NVL)
LEAD (EFFECTIVE_END_DATE)
COURSES (ORDER OF THE OHR, EFFECTIVE_START_DATE DESC)
+ 1,
EFFECTIVE_START_DATE
)
EFFECTIVE_START_DATE,
effective_end_date,
previous_coe,
OF XX_WORK_HIS
where OHR = '103021253';
Correct record
OHR EFFECTIVE_START_DATE EFFECTIVE_END_DATE PREVIOUS_COE
103021253 1 May 10 - AC1
103021253 15 April 10-30 April 10 company s America
103021253 23 March 10-14 April 10 company s America
103021253 1 May 09-22 March 10 business s America
103021253 5 March 09-30 April 09 company s America
103021253 10 February 09 - 4 March 09 company s America
103021253 1 January 09 - 9 February 09 company s America
103021253 13 August 08-31 December 08 Creditek
103021253 1 January 08-12 August 08 Creditek LLC
103021253 13 April 07-31 December 07
103021253 1-sep-06-12 April 07
103021253 12 August 06-31 AUG 06
103021253 8 August 06-11 August 06
103021253 7 July 03-7 August 06
Check the last row, EFFECTIVE_START_DATE its 7 July 03, which is the correct record.
I don't get if I use same condition in view why I get a bad record in last place.
Please suggest.
Thank you
Bachan.My problem is solved, but can you tell me what is the problem with the query I used and what happens with COMPARTMENTALIZED BY
See the documentation for the PARTITION BY clause:
http://download.Oracle.com/docs/CD/B19306_01/server.102/b14200/functions001.htm#i1000371... and a previous thread dealing with the same problem you encountered: {: identifier of the thread = 1044458}
(Note that the position of Solomon and the link to AskTom) -
question about pl/sql script
Hi all
I need to manage other tables that will contain as follows:
whenever the user query it will be an insert in this table called mng_rishui_session that contain
track:
NUM of user's session id,
Date and time of execution of the request,
type of query
every 15 minutes, I need to delete the data of the user of some the various tables according to the type of the query.
the tables that contain the data:
mng_rishui_session / / DESC
session_id_num NOT NULL VARCHAR2 (30)
type_query not null number (2)
date of time_query
I want to write a pl/sql script like this:
issues related to the:declare cursor c1 as select session_id_num,type_query from mng_rishui_session where time_query (/*here i need to do the condition that 15 minutes has passed from the time query i don't know how to do this */ begin for e in c1 loop case e.type_query when 1 delete query1_table where session_id_num :=e.session_id_num; when 3 delete query3_table where session_id_num :=e.session_id_num; end end loop; end;
1. how to check if 15 minutes where the past
2. it is good to do with loop for writing valid deletion in the loop
or do I have to do it another way to write this.
Thanks in advance
NaamaHi, Naama,
Naama wrote:
... now my script looks like this:
mng_session. SQLdeclare cursor c1 as select session_id_num,type_query from mng_rishui_session where (sysdate - t_query) * 24 * 60 >= 15; begin for e in c1 loop case e.type_query when 1 then delete query1_table where session_id_num = e.session_id_num; when 3 then delete query3_table where session_id_num =e.session_id_num; end case; end loop; end;
first of all, I want to know where I'm going to do the validation, if I need to do.
In the PL/SQL code (so we won't do it in case of error) but after the LOOP is finished.
In other words, assuming you are using a LOOP. It will be much more effective if you just do a DELETE statement on each table. Think about it: If your mng_rishui_session has 1,000 rows where t_query (or time_query, if the column is always so called) is fortunate to have one of the type_queries you want at least 15 minutes, and 100 of these lines, then you must fetch the 1,000 rows (if not all of the table) , and separate 100 DELETE queries. It is more effective to extract 100 lines (assuming that there is an index composed of type_query and t_query) and to only 2 DELETE statements. See below.Second:
I run this script through linux system, in order to head to sleep.
My problem is that I am trying to append the output of script;
but it won't let mePeople on this site will try to help you. Why not try to help them do it?
Do not say "he won't let me": show all that you know the problem. What exactly have you tried? That's happened? If you got an error, display the full error message, including the line number. If you got the wrong results, describe what happened.My goal is:
a script running the sql scripy called:
CS-mng-session:#!bin/bash sqlplus user/passwd@dbname @mng_session /*mng_session is the script were i declare the cursor etc.*/ in the command line i want to write : (sleep 600; sh cs-mng-session)&
the problem is that if I do not exit. He recorded in sql and the script does not return to the command line.
How do I overcome this problem?Make an EXIT.
Try something like this:
DECLARE cutoff_date DATE := SYSDATE - (15 / (24 * 60)); BEGIN DELETE query1_table WHERE session_id_num IN ( SELECT session_id_num FROM mng_rishui_session WHERE type_query = 1 AND t_query <= cutoff_date ); DELETE query3_table WHERE session_id_num IN ( SELECT session_id_num FROM mng_rishui_session WHERE type_query = 3 AND t_query <= cutoff_date ); COMMIT; -- If desired END; / EXIT;
Is there a reason why query1_table should be different from query3_table? Why can't you have just a query_table, with a column of type_query?
What happens if there is an error? You won't want to know? You must add an EXCEPTION section to write the details about the error in a log table and someone send an email on this subject.
Published by: Frank Kulash, August 31, 2010 09:07
Added / issue; -
Pretty simple Question of PHP/SQL
I made a page where the user connects to something, but I want to keep having the same password as their user name. What is the best way to do it? Can I do it through dreamweaver or SQL? I guess an IF statement with the kill conditioon or something along those lines will work, I really don't want the values with the user name and password for repeated added to my database at all.
Thanks for the help, sorry, it's Aussie a newbie question: PGeschenk wrote:
> you can simply compare the field values submitted username & password using
> an IF-ELSE statement, and if the password is username, tell him
> something ;-) What s your server, PHP, ASP, CF model?It says PHP in the subject line, PHP is.
If {($_POST)}
{If ($_POST ['username'] == {$_POST ['password']})}
$error = 'You cannot use your username as password
';
}
else {}
Insert here the code of behavior insert record server
}
}In the form itself:
--
Adobe Community Expert David Powers
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
Maybe you are looking for
-
create time string 800 Hz to tiara
How create a time of 800 Hz channel using the 'create string of time' in the section analysis of Diadem. It will not accept integers to be used as a time step. To create a channel of time 1000 Hz, I use a time unit of 'miilisecond' and a time step
-
I just bought new pc, I installed xp in it.de error I installed it twice today in my pc I have 2 os (windows xp 2)... now I want to reset my pc as new pc so that I can install again new windows xp.please tell me how to remove the two old windows xp t
-
Grayed out button standby and Hibernate in windows XP missing button
Hi, my computer is a Dell (Inspiron E1505) using Windows XP laptop. I had a problem of virus a few weeks ago and had to format and reinstall everything. I'm really bad with computers and apparently I did something wrong because now my sleep button is
-
Vista Start Menu is blank on the left side after Windows updates
Original title: Vista Start Menu Hi, this is my first post, so I hope someone can help. I recently did a load of hole of updates on my pc of the friends, running Vista Home ultimate. Since I did, when I click on the start menu, the left side is empty
-
How do I change settings of screen savers in Windows RT?
Original title: the screen saver settings How can I find my screensaver settings in my RT Surface? When I right click on the desktop, and then click Customize, it says that sound, color and wallpaper. No screen saver...